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 <ho3ein.sanaei@gmail.com>2023-04-10 14:03:50 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-10 14:03:50 +0300
commit26a0481d8275c6d7953aaeb72a316db69c150354 (patch)
tree476c92929a3659e51091ada546dfb4778d41f757 /database
parent304510aefc7bb56a392c2adc973e1dc918d4f31b (diff)
http header bug fixed
Diffstat (limited to 'database')
-rw-r--r--database/db.go2
-rw-r--r--database/model/model.go6
2 files changed, 4 insertions, 4 deletions
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"`
}