🎨服务端的初始化
This commit is contained in:
12
model/entity/system.go
Normal file
12
model/entity/system.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package entity
|
||||
|
||||
type Setting struct {
|
||||
Base
|
||||
Code string `json:"code" gorm:"type:char(20);not null;comment:'设定code'"`
|
||||
Data string `json:"data" gorm:"type:text;not null;comment:'值'"`
|
||||
Describe string `json:"describe" gorm:"type:text;default null;comment:'默认值'"`
|
||||
}
|
||||
|
||||
func (Setting) TableName() string {
|
||||
return "t_setting"
|
||||
}
|
Reference in New Issue
Block a user