🎨服务端的初始化

This commit is contained in:
coward
2024-03-07 17:07:41 +08:00
parent 097505df99
commit 28cdfd1240
16 changed files with 543 additions and 19 deletions

12
model/entity/system.go Normal file
View 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"
}