✨ init project
This commit is contained in:
20
model/system/sys_params.go
Normal file
20
model/system/sys_params.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// 自动生成模板SysParams
|
||||
package system
|
||||
|
||||
import (
|
||||
"git.echol.cn/loser/lckt/global"
|
||||
)
|
||||
|
||||
// 参数 结构体 SysParams
|
||||
type SysParams struct {
|
||||
global.GVA_MODEL
|
||||
Name string `json:"name" form:"name" gorm:"column:name;comment:参数名称;" binding:"required"` //参数名称
|
||||
Key string `json:"key" form:"key" gorm:"column:key;comment:参数键;" binding:"required"` //参数键
|
||||
Value string `json:"value" form:"value" gorm:"column:value;comment:参数值;" binding:"required"` //参数值
|
||||
Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:参数说明;"` //参数说明
|
||||
}
|
||||
|
||||
// TableName 参数 SysParams自定义表名 sys_params
|
||||
func (SysParams) TableName() string {
|
||||
return "sys_params"
|
||||
}
|
||||
Reference in New Issue
Block a user