Подготовить HY2XS к production-сборке

This commit is contained in:
2026-04-25 23:13:12 +05:00
commit 84a4e94567
277 changed files with 26513 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package entity
type Account struct {
Username *string `gorm:"column:username;default:''" json:"username"`
Pass *string `gorm:"column:pass;default:''" json:"pass"`
ConPass *string `gorm:"column:con_pass;default:''" json:"conPass"`
Quota *int64 `gorm:"column:quota;default:0" json:"quota"`
Download *int64 `gorm:"column:download;default:0" json:"download"`
Upload *int64 `gorm:"column:upload;default:0" json:"upload"`
ExpireTime *int64 `gorm:"column:expire_time;default:0" json:"expireTime"`
KickUtilTime *int64 `gorm:"column:kick_util_time;default:0" json:"kickUtilTime"`
DeviceNo *int64 `gorm:"column:device_no;default:3" json:"deviceNo"`
Role *string `gorm:"column:role;default:'user'" json:"role"`
Deleted *int64 `gorm:"column:deleted;default:0" json:"deleted"`
BaseEntity `gorm:"embedded"`
LoginAt *int64 `gorm:"column:login_at;default:0" json:"loginAt"`
ConAt *int64 `gorm:"column:con_at;default:0" json:"conAt"`
Remark *string `gorm:"column:remark;default:''" json:"remark"`
}
+8
View File
@@ -0,0 +1,8 @@
package entity
type Config struct {
Key *string `gorm:"column:key;default:''" json:"key"`
Value *string `gorm:"column:value;default:''" json:"value"`
Remark *string `gorm:"column:remark;default:''" json:"remark"`
BaseEntity `gorm:"embedded"`
}
+9
View File
@@ -0,0 +1,9 @@
package entity
import "time"
type BaseEntity struct {
Id *int64 `gorm:"column:id;primaryKey" json:"id"`
CreateTime *time.Time `gorm:"column:create_time;default:null" json:"createTime"`
UpdateTime *time.Time `gorm:"column:update_time;default:null" json:"updateTime"`
}