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"` }