feat: Initial commit

This commit is contained in:
engigu
2025-12-20 09:30:16 +08:00
commit 362237241e
189 changed files with 12035 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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"`
Key string `json:"key" gorm:"size:100;not null;index:idx_section_key"`
Value string `json:"value" gorm:"type:text"`
}
func (Setting) TableName() string {
return constant.TablePrefix + "settings"
}