新增本地获取任务列表,对接任务列表加入存储数据库功能

This commit is contained in:
chy
2025-06-17 09:06:41 +08:00
parent 76671693a4
commit ba2e44fb21
29 changed files with 592 additions and 144 deletions

View File

@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// StoreTaskRewards is the golang structure of table store_task_rewards for DAO operations like Where/Data.
type StoreTaskRewards struct {
g.Meta `orm:"table:store_task_rewards, do:true"`
Id interface{} // 奖励唯一标识符
TaskId interface{} // 任务ID关联tasks表的id
StoreId interface{} // 门店ID
Name interface{} // 奖励名称
RewardTypeId interface{} // 奖励类型ID
TotalNum interface{} // 奖励总数
UsedNum interface{} // 已使用数量
LimitNum interface{} // 限制数量
CoverImage interface{} // 封面图URL
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -11,10 +11,15 @@ import (
// Tasks is the golang structure of table tasks for DAO operations like Where/Data.
type Tasks struct {
g.Meta `orm:"table:tasks, do:true"`
Id interface{} // 任务唯一标识符
QqNetbarTaskId interface{} // QQ网吧任务ID
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
g.Meta `orm:"table:tasks, do:true"`
Id interface{} // 任务唯一标识符
QqNetbarTaskId interface{} // QQ网吧任务ID
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
QqNetbarTaskName interface{} // QQ网吧任务名称
QqNetbarTaskMemo interface{} // 任务描述
QqNetbarTaskRules interface{} // 任务规则
GameId interface{} // 游戏唯一id
StoreId interface{} // 门店 id
}