gamelife 自定义客户端集成游戏任务接口
This commit is contained in:
62
internal/model/gamelife.go
Normal file
62
internal/model/gamelife.go
Normal file
@ -0,0 +1,62 @@
|
||||
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 QQNetbarTask 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"`
|
||||
GameTaskConfig GameTaskConfig `json:"game_task_config"`
|
||||
GameTaskConfigParse GameTaskConfigParse `json:"game_task_config_parse"`
|
||||
}
|
||||
|
||||
type QQNetbarTaskNoLoginResponse struct {
|
||||
PageIdx string `json:"pageidx"`
|
||||
TaskList []QQNetbarTask `json:"task_list"`
|
||||
}
|
||||
|
||||
type TaskParam struct {
|
||||
NetbarAccount string `json:"netbar_account"`
|
||||
PageIds 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
|
||||
}
|
||||
Reference in New Issue
Block a user