Add internal/model/config.go
This commit is contained in:
13
internal/model/config.go
Normal file
13
internal/model/config.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// Config 系统配置键值对模型,用于存储可动态修改的业务配置
|
||||
type Config struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Key string `gorm:"size:100;uniqueIndex;not null" json:"key"`
|
||||
Value string `gorm:"type:text" json:"value"`
|
||||
Remark string `gorm:"size:255" json:"remark"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user