Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <mc.sanaei@gmail.com>2023-02-18 15:37:32 +0300
committerMHSanaei <mc.sanaei@gmail.com>2023-02-18 15:37:32 +0300
commitb412df70f1b2e9f10b75e095a2329f10b48e01b5 (patch)
tree9d69f34fc53ce9662996494718a7f6aabab0b648 /database
parentfe9844b51b04bb924bb0e5444b493668c9df92a2 (diff)
update pack 2
Diffstat (limited to 'database')
-rw-r--r--database/model/model.go31
1 files changed, 16 insertions, 15 deletions
diff --git a/database/model/model.go b/database/model/model.go
index 56118c73..25e0cd41 100644
--- a/database/model/model.go
+++ b/database/model/model.go
@@ -24,15 +24,15 @@ type User struct {
}
type Inbound struct {
- Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
- UserId int `json:"-"`
- Up int64 `json:"up" form:"up"`
- Down int64 `json:"down" form:"down"`
- Total int64 `json:"total" form:"total"`
- Remark string `json:"remark" form:"remark"`
- Enable bool `json:"enable" form:"enable"`
- ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
- ClientStats []xray.ClientTraffic `gorm:"foreignKey:InboundId;references:Id" json:"clientStats" form:"clientStats"`
+ Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
+ UserId int `json:"-"`
+ Up int64 `json:"up" form:"up"`
+ Down int64 `json:"down" form:"down"`
+ Total int64 `json:"total" form:"total"`
+ Remark string `json:"remark" form:"remark"`
+ Enable bool `json:"enable" form:"enable"`
+ ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
+ ClientStats []xray.ClientTraffic `gorm:"foreignKey:InboundId;references:Id" json:"clientStats" form:"clientStats"`
// config part
Listen string `json:"listen" form:"listen"`
@@ -65,11 +65,12 @@ type Setting struct {
Key string `json:"key" form:"key"`
Value string `json:"value" form:"value"`
}
+
type Client struct {
- ID string `json:"id"`
- AlterIds uint16 `json:"alterId"`
- Email string `json:"email"`
- Security string `json:"security"`
- TotalGB int64 `json:"totalGB" form:"totalGB"`
+ ID string `json:"id"`
+ AlterIds uint16 `json:"alterId"`
+ Email string `json:"email"`
+ Security string `json:"security"`
+ TotalGB int64 `json:"totalGB" form:"totalGB"`
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
-} \ No newline at end of file
+}