66 lines
2.1 KiB
Go
66 lines
2.1 KiB
Go
package model
|
|
|
|
type Goods struct {
|
|
GoodsType int `json:"goodstype"`
|
|
GoodsName string `json:"goodsname"`
|
|
GoodsIcon string `json:"goodsicon"`
|
|
Num int `json:"num"`
|
|
}
|
|
|
|
type Prize struct {
|
|
Pic string `json:"pic"`
|
|
PrizeName string `json:"prize_name"`
|
|
GoodsList []Goods `json:"goods_list"`
|
|
}
|
|
|
|
type GameTaskConfig struct {
|
|
GameType int `json:"game_type"`
|
|
LimitQueue []string `json:"limit_queue"`
|
|
LimitMode []string `json:"limit_mode"`
|
|
Target int `json:"target"`
|
|
TimeType int `json:"time_type"`
|
|
LimitUserType []string `json:"limit_user_type"`
|
|
}
|
|
|
|
type GameTaskConfigParse struct {
|
|
Target string `json:"target"`
|
|
}
|
|
|
|
type GameTask struct {
|
|
RuleDesc string `json:"rule_desc"`
|
|
TaskDesc string `json:"task_desc"`
|
|
LimitPrize int `json:"limit_prize"`
|
|
LimitNum int `json:"limit_num"`
|
|
PrizeList []Prize `json:"prize_list"`
|
|
TaskID string `json:"task_id"`
|
|
Title string `json:"title"`
|
|
CycleStart int64 `json:"cycle_start"`
|
|
CycleEnd int64 `json:"cycle_end"`
|
|
TargetName string `json:"target_name"`
|
|
TargetTimes int `json:"target_times"`
|
|
Status int `json:"status,omitempty"`
|
|
UserTimes int64 `json:"user_times,omitempty"`
|
|
GameTaskConfig GameTaskConfig `json:"game_task_config"`
|
|
GameTaskConfigParse GameTaskConfigParse `json:"game_task_config_parse"`
|
|
}
|
|
|
|
type GameTaskResponse struct {
|
|
PageIdx string `json:"pageidx"`
|
|
TaskList []GameTask `json:"task_list"`
|
|
}
|
|
|
|
type TaskParam struct {
|
|
NetBarAccount string `json:"netbar_account"`
|
|
Pageidx string `json:"pageidx"`
|
|
Num int `json:"num"`
|
|
Gid int `json:"gid"`
|
|
BrandId string `json:"brand_id"`
|
|
Source string `json:"source"`
|
|
}
|
|
|
|
type QQNetbarActivityIn struct {
|
|
ServiceName string // 服务名称
|
|
TaskParam TaskParam // 参数体
|
|
PopenId string
|
|
}
|