新增本地获取任务列表,对接任务列表加入存储数据库功能
This commit is contained in:
@ -1,5 +1,21 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/os/gtime"
|
||||
|
||||
type Tasks struct {
|
||||
Id int64 `json:"id" orm:"id" description:"任务唯一标识符"` // 任务唯一标识符
|
||||
QqNetbarTaskId string `json:"qqNetbarTaskId" orm:"qq_netbar_task_id" description:"QQ网吧任务ID"` // QQ网吧任务ID
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
QqNetbarTaskName string `json:"qqNetbarTaskName" orm:"qq_netbar_task_name" description:"QQ网吧任务名称"` // QQ网吧任务名称
|
||||
QqNetbarTaskMemo string `json:"qqNetbarTaskMemo" orm:"qq_netbar_task_memo" description:"任务描述"` // 任务描述
|
||||
QqNetbarTaskRules string `json:"qqNetbarTaskRules" orm:"qq_netbar_task_rules" description:"任务规则"` // 任务规则
|
||||
GameId int64 `json:"gameId" orm:"game_id" description:"游戏唯一id"` // 游戏唯一id
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"门店 id"` // 门店 id
|
||||
StoreTaskRewards []StoreTaskReward `json:"storeTaskRewards" orm:"with:task_id=id"`
|
||||
}
|
||||
|
||||
type GetNonLoginTaskListIn struct {
|
||||
NetBarAccount string `json:"netbar_account"` //网关账号
|
||||
//Page int `json:"page"` // 分页索引
|
||||
@ -37,3 +53,26 @@ type GetLoginTaskListOut struct {
|
||||
// Total int `json:"total"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
// 定义一个与 JSON 结构匹配的结构体
|
||||
type MyData struct {
|
||||
TaskId string `json:"task_id"`
|
||||
//GameId int `json:"game_id"`
|
||||
QQNetBarTaskMemo string `json:"task_desc"`
|
||||
QQNetBarTaskName string `json:"title"`
|
||||
QQNetBarTaskRules string `json:"rule_desc"`
|
||||
//StoreId int `json:"store_id"`
|
||||
}
|
||||
|
||||
type TaskListIn struct {
|
||||
Gid int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
||||
NetBarAccount string `json:"netBarAccount"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"条数"`
|
||||
StoreId int `json:"store_id"`
|
||||
}
|
||||
|
||||
type TaskListOut struct {
|
||||
List interface{} `json:"list"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user