From 0a715178b42224980d5ed9c20f32f4f13ab2a929 Mon Sep 17 00:00:00 2001 From: ata <17314593+asdxzaaaaa@user.noreply.gitee.com> Date: Fri, 10 Jul 2026 10:06:05 +0000 Subject: [PATCH] Add internal/model/config.go --- internal/model/config.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/model/config.go 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"` +}