Files
bl/modules/config/model/spt.go
昔念 823eef00ac
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
1
2026-04-18 15:30:00 +08:00

35 lines
821 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import "blazing/cool"
const (
TableNameSptConfig = "config_spt"
)
// SptConfig SPT展示配置仅保留前端展示必需字段
type SptConfig struct {
*BaseConfig
TaskID uint32 `gorm:"not null;uniqueIndex;comment:'SPT任务ID'" json:"task_id" description:"SPT任务ID"`
Title string `gorm:"type:varchar(64);not null;default:'';comment:'SPT名字'" json:"title" description:"SPT名字"`
Description string `gorm:"type:text;not null;default:'';comment:'SPT描述'" json:"description" description:"SPT描述"`
}
func (*SptConfig) TableName() string {
return TableNameSptConfig
}
func (*SptConfig) GroupName() string {
return "default"
}
func NewSptConfig() *SptConfig {
return &SptConfig{
BaseConfig: NewBaseConfig(),
}
}
func init() {
cool.CreateTable(&SptConfig{})
}