Add internal/model/config.go

This commit is contained in:
ata
2026-07-10 10:06:05 +00:00
committed by Gitee
parent 96208a2181
commit 0a715178b4

13
internal/model/config.go Normal file
View 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"`
}