From e1da43053d23c995bcd6e7267cb20042398cd64f Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 9 Apr 2023 23:13:18 +0330 Subject: alireza update pack Co-Authored-By: Alireza Ahmadi --- database/model/model.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'database') diff --git a/database/model/model.go b/database/model/model.go index 606b922c..69724213 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -44,9 +44,9 @@ type Inbound struct { Sniffing string `json:"sniffing" form:"sniffing"` } type InboundClientIps struct { - Id int `json:"id" gorm:"primaryKey;autoIncrement"` + Id int `json:"id" gorm:"primaryKey;autoIncrement"` ClientEmail string `json:"clientEmail" form:"clientEmail" gorm:"unique"` - Ips string `json:"ips" form:"ips"` + Ips string `json:"ips" form:"ips"` } func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig { @@ -80,4 +80,7 @@ type Client struct { LimitIP int `json:"limitIp"` TotalGB int64 `json:"totalGB" form:"totalGB"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` + Enable bool `json:"enable" from:"enable"` + TgID string `json:"tgId" from:"tgId"` + SubID string `json:"subId" from:"subId"` } -- cgit v1.2.3 From 26a0481d8275c6d7953aaeb72a316db69c150354 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 10 Apr 2023 14:33:50 +0330 Subject: http header bug fixed --- database/db.go | 2 +- database/model/model.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'database') diff --git a/database/db.go b/database/db.go index f7a590b2..b9c16be8 100644 --- a/database/db.go +++ b/database/db.go @@ -92,7 +92,7 @@ func InitDB(dbPath string) error { if err != nil { return err } - + return nil } diff --git a/database/model/model.go b/database/model/model.go index 69724213..778ad9b6 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -80,7 +80,7 @@ type Client struct { LimitIP int `json:"limitIp"` TotalGB int64 `json:"totalGB" form:"totalGB"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` - Enable bool `json:"enable" from:"enable"` - TgID string `json:"tgId" from:"tgId"` - SubID string `json:"subId" from:"subId"` + Enable bool `json:"enable" form:"enable"` + TgID string `json:"tgId" form:"tgId"` + SubID string `json:"subId" form:"subId"` } -- cgit v1.2.3