diff --git a/internal/model/config.go b/internal/model/config.go new file mode 100644 index 0000000..4ff4fb0 --- /dev/null +++ b/internal/model/config.go @@ -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"` +}