game7 api

This commit is contained in:
lianghuanjie
2025-01-10 16:20:58 +08:00
parent e9f237ee7c
commit 957537efc4
16 changed files with 359 additions and 24 deletions

View File

@@ -36,6 +36,21 @@ type Error struct {
Message string `json:"message"`
}
type Game7Result struct {
Status Status `json:"status"` // 状态
Data Game7ResultData `json:"data"` // 数据
}
type Game7ResultData struct {
IsValid bool `json:"isValid"` // true:是false:否
}
type Game7TaskCheckReq struct {
ApiKey string `header:"x-api-key"` // api key
Email string `form:"email"` // 邮箱
Type int8 `form:"type"` // 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄是/否) 6. 是否完成了主线第一章(是/否)
}
type GetCommunityListResp struct {
CommunityList []Community `json:"community_list"` // 社区列表
}
@@ -84,6 +99,11 @@ type StakeTaskDetail struct {
TotalIncomeTokens float64 `json:"total_income_tokens"` // 累计收益
}
type Status struct {
Code int `json:"code"` // 状态码
Msg string `json:"msg"` // 状态信息
}
type Task struct {
Id uint `json:"id"` // 任务ID
CommunityId uint `json:"community_id"` // 所属社区ID