mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-29 06:16:19 +00:00

Some checks are pending
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
* feat(db): add allTime field to Inbound and ClientTraffic models * feat(inbound): increment all_time for inbounds and clients on traffic updates calculate correct all_time traffic on migrate command * feat(ui): show all-time traffic column for inbounds and its clients * i18n: add pages.inbounds.allTimeTraffic label across locales * Add All Time Traffic Usage in inbounds page top banner
14 lines
587 B
Go
14 lines
587 B
Go
package xray
|
|
|
|
type ClientTraffic struct {
|
|
Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
|
|
InboundId int `json:"inboundId" form:"inboundId"`
|
|
Enable bool `json:"enable" form:"enable"`
|
|
Email string `json:"email" form:"email" gorm:"unique"`
|
|
Up int64 `json:"up" form:"up"`
|
|
Down int64 `json:"down" form:"down"`
|
|
AllTime int64 `json:"allTime" form:"allTime"`
|
|
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
|
|
Total int64 `json:"total" form:"total"`
|
|
Reset int `json:"reset" form:"reset" gorm:"default:0"`
|
|
}
|