|
|
|
|
@ -48,6 +48,7 @@ const ( |
|
|
|
|
TaskKindZero = iota |
|
|
|
|
TaskKindOnce |
|
|
|
|
TaskKindCycle |
|
|
|
|
TaskKindDayOne |
|
|
|
|
TaskKindAll |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
@ -60,7 +61,7 @@ type ConfigTask struct { |
|
|
|
|
Target int64 `gorm:"column:target;type:bigint(20);default:0;comment:任务目标" web:"target"` |
|
|
|
|
Reward int64 `gorm:"column:reward;type:bigint(20);default:0;comment:奖励" web:"reward"` |
|
|
|
|
Open int `gorm:"column:open;type:int(11);default:1;comment:开关 1打开" web:"open"` |
|
|
|
|
Kind int `gorm:"column:kind;type:int(11);default:1;comment:1单次 2循环" web:"kind"` |
|
|
|
|
Kind int `gorm:"column:kind;type:int(11);default:1;comment:1单次 2循环 3 每日一次" web:"kind"` |
|
|
|
|
Type TaskType `gorm:"column:type;type:int(11);default:1;comment:1注册 2下载" web:"type"` |
|
|
|
|
Title string `gorm:"column:title;type:varchar(256);default:'';comment:标题" web:"title"` |
|
|
|
|
Icon string `gorm:"column:icon;type:varchar(256);default:'';comment:图标" web:"icon"` |
|
|
|
|
|