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-06-01 00:44:54 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-01 00:44:54 +0300
commite4e0deeed44a3ece62b5e24ecb629cecd20d9f23 (patch)
tree446e0f7d1624ea5685067bf72f3eaddb8afa6f87 /v2ui/models.go
parent48dce38e14ffe3f96d4a9a5b85f6971be34d5448 (diff)
removed - v2-ui migrate
Diffstat (limited to 'v2ui/models.go')
-rw-r--r--v2ui/models.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/v2ui/models.go b/v2ui/models.go
deleted file mode 100644
index 9ac50ed7..00000000
--- a/v2ui/models.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package v2ui
-
-import "x-ui/database/model"
-
-type V2Inbound struct {
- Id int `gorm:"primaryKey;autoIncrement"`
- Port int `gorm:"unique"`
- Listen string
- Protocol string
- Settings string
- StreamSettings string
- Tag string `gorm:"unique"`
- Sniffing string
- Remark string
- Up int64
- Down int64
- Enable bool
-}
-
-func (i *V2Inbound) TableName() string {
- return "inbound"
-}
-
-func (i *V2Inbound) ToInbound(userId int) *model.Inbound {
- return &model.Inbound{
- UserId: userId,
- Up: i.Up,
- Down: i.Down,
- Total: 0,
- Remark: i.Remark,
- Enable: i.Enable,
- ExpiryTime: 0,
- Listen: i.Listen,
- Port: i.Port,
- Protocol: model.Protocol(i.Protocol),
- Settings: i.Settings,
- StreamSettings: i.StreamSettings,
- Tag: i.Tag,
- Sniffing: i.Sniffing,
- }
-}