Files
TaskPool/internal/models/setting.go
T

18 lines
433 B
Go
Raw Normal View History

2025-12-20 09:30:16 +08:00
package models
import (
"baihu/internal/constant"
)
// Setting 系统设置
type Setting struct {
ID uint `json:"id" gorm:"primaryKey"`
Section string `json:"section" gorm:"size:50;not null;index:idx_section_key"`
2025-12-21 10:38:48 +08:00
Key string `json:"key" gorm:"size:100;not null;index:idx_section_key"`
2025-12-20 09:30:16 +08:00
Value string `json:"value" gorm:"type:text"`
}
func (Setting) TableName() string {
return constant.TablePrefix + "settings"
}