API: subid to getClientTraffics

/getClientTraffics/:email
/getClientTrafficsById/:id
This commit is contained in:
mhsanaei
2025-09-17 01:29:22 +02:00
parent 22afa50901
commit 299572a4c2
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ type ClientTraffic struct {
InboundId int `json:"inboundId" form:"inboundId"`
Enable bool `json:"enable" form:"enable"`
Email string `json:"email" form:"email" gorm:"unique"`
SubId string `json:"subId" form:"subId" gorm:"-"`
Up int64 `json:"up" form:"up"`
Down int64 `json:"down" form:"down"`
AllTime int64 `json:"allTime" form:"allTime"`