105 lines
4.3 KiB
Go
105 lines
4.3 KiB
Go
package model
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"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"` // 分页索引
|
|
//Size int `json:"size"` // 分页大小
|
|
Pageidx string `json:"pageidx"` // 分页索引
|
|
Num int `json:"num"` //
|
|
Gid int `json:"gid"` // 游戏唯一id
|
|
Source string `json:"source"` // 不能为空
|
|
BrandId string `json:"brand_id"` // 品牌id(可选)
|
|
}
|
|
|
|
type GetNonLoginTaskListOut struct {
|
|
// List interface{} `json:"list"`
|
|
// Total int `json:"total"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
type GetLoginTaskListIn struct {
|
|
NetBarAccount string `json:"netbar_account"` //网关账号
|
|
Gid int `json:"gid"` // 游戏唯一id
|
|
POpenId string `json:"POpenId"` //POpenId
|
|
}
|
|
|
|
// GetTenCentLoginTaskListIn 获取腾讯游戏任务列表已登录入参
|
|
type GetTenCentLoginTaskListIn struct {
|
|
NetBarAccount string `json:"netbar_account"` //网关账号
|
|
Pageidx string `json:"pageidx"` // 分页索引
|
|
Num int `json:"num"` //
|
|
Gid int `json:"gid"` // 游戏唯一id
|
|
BrandId string `json:"brand_id"` // 品牌id(可选)
|
|
}
|
|
|
|
type GetLoginTaskListOut struct {
|
|
// List interface{} `json:"list"`
|
|
// Total int `json:"total"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
// MyData 定义一个与 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"`
|
|
}
|
|
|
|
// SelectorIn 系统管理员任务列表二级选择器
|
|
type SelectorIn struct {
|
|
}
|
|
|
|
type SelectorOut struct {
|
|
g.Meta `orm:"table:merchants"`
|
|
Id int `json:"id" orm:"id"`
|
|
MerchantName string `json:"merchantName" orm:"name"`
|
|
StoreDatas []StoreData `json:"StoreDatas" orm:"with:merchant_id=id"`
|
|
//StoreData []StoreData `json:"storeData"`
|
|
}
|
|
|
|
type StoreData struct {
|
|
g.Meta `orm:"table:stores"`
|
|
Id int `json:"id" orm:"id"`
|
|
MerchantId int `json:"merchantId" orm:"merchant_id"`
|
|
StoreName string `json:"storeName" orm:"name"`
|
|
}
|
|
|
|
type S struct {
|
|
Name string `json:"name"`
|
|
}
|