通道的增删接口实现,数据表和目录结构调整
This commit is contained in:
@@ -16,7 +16,6 @@ const TableNameResourcePsr = "resource_psr"
|
||||
type ResourcePsr struct {
|
||||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:ID" json:"id"` // ID
|
||||
ResourceID int32 `gorm:"column:resource_id;not null;comment:套餐ID" json:"resource_id"` // 套餐ID
|
||||
Active bool `gorm:"column:active;not null;comment:是否启用" json:"active"` // 是否启用
|
||||
Live int32 `gorm:"column:live;comment:轮换周期(秒)" json:"live"` // 轮换周期(秒)
|
||||
Conn int32 `gorm:"column:conn;comment:最大连接数" json:"conn"` // 最大连接数
|
||||
Expire time.Time `gorm:"column:expire;comment:过期时间" json:"expire"` // 过期时间
|
||||
|
||||
Reference in New Issue
Block a user