This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
/*
|
||||
* @Author: 昔念 12574910+72wo@users.noreply.github.com
|
||||
* @Date: 2025-12-31 02:42:41
|
||||
* @LastEditors: 昔念 12574910+72wo@users.noreply.github.com
|
||||
* @LastEditTime: 2026-01-18 11:37:05
|
||||
* @FilePath: \sun\modules\config\model\task.go
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
package model
|
||||
|
||||
import (
|
||||
@@ -19,7 +11,7 @@ const (
|
||||
|
||||
// TaskConfig 任务核心配置模型
|
||||
type TaskConfig struct {
|
||||
*cool.Model
|
||||
*BaseConfig
|
||||
|
||||
// 核心字段
|
||||
TaskId uint32 `gorm:"not null;comment:'任务唯一ID'" json:"task_id" description:"任务唯一ID"`
|
||||
@@ -37,10 +29,6 @@ type TaskConfig struct {
|
||||
|
||||
//绑定奖励
|
||||
TitleRewardIds uint32 `gorm:"not null;default:0;comment:'绑定奖励称号'" json:"title_reward_ids" description:"绑定奖励称号"`
|
||||
// 任务状态和周期
|
||||
IsEnabled uint32 `gorm:"not null;default:1;comment:'是否启用该任务(0-禁用 1-启用)'" json:"is_enabled" description:"是否启用"`
|
||||
|
||||
Remark string `gorm:"size:512;default:'';comment:'任务备注'" json:"remark" description:"备注信息"`
|
||||
}
|
||||
|
||||
// -------------------------- 核心配套方法(遵循项目规范)--------------------------
|
||||
@@ -54,7 +42,7 @@ func (*TaskConfig) GroupName() string {
|
||||
|
||||
func NewTaskConfig() *TaskConfig {
|
||||
return &TaskConfig{
|
||||
Model: cool.NewModel(),
|
||||
BaseConfig: NewBaseConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user