- galleryService 独立启动,配置 task-service-url - 新增 taskService 到 galleryService 的 RPC 调用 - 更新 proto 文件并重新生成代码 - 新增展览唯一约束迁移脚本 - 修复多个 service 的配置和依赖关系 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
17 lines
661 B
Go
17 lines
661 B
Go
package models
|
|
|
|
// SystemConfig 系统配置表模型
|
|
type SystemConfig struct {
|
|
ID int64 `gorm:"primaryKey;autoIncrement;column:id"`
|
|
ConfigKey string `gorm:"type:varchar(100);uniqueIndex;not null;column:config_key"`
|
|
ConfigValue float64 `gorm:"type:numeric(10,2);not null;column:config_value"` // 使用 float64 支持小数
|
|
Description string `gorm:"type:varchar(500);column:description"`
|
|
IsActive bool `gorm:"default:true;column:is_active"`
|
|
CreatedAt int64 `gorm:"column:created_at"`
|
|
UpdatedAt int64 `gorm:"column:updated_at"`
|
|
}
|
|
|
|
// TableName 指定表名
|
|
func (SystemConfig) TableName() string {
|
|
return "system_configs"
|
|
} |