feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -0,0 +1,81 @@
package inner
import "errors"
// 获取用户的活动打怪排行
type GetUserActivityAttackRankRequest struct {
AccessToken string
ActivityIdList string
}
// 参数合法性检验
func (request *GetUserActivityAttackRankRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
return
}
// 获取BOSS信息
type GetBossInfoRequest struct {
AccessToken string
BossId string
PageNo string
PageSize string
}
// 参数合法性检验
func (request *GetBossInfoRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("用户Id不能为空")
return
}
if len(request.BossId) == 0 {
err = errors.New("BossId不能为空")
return
}
return
}
// 获取领奖中心列表
type GetDeathPrizeListRequest struct {
AccessToken string
Page int
Size int
}
// 参数合法性检验
func (request *GetDeathPrizeListRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("用户Id不能为空")
return
}
if request.Page < 0 {
request.Page = 0
}
if request.Size < 1 {
request.Size = 10
}
return
}
// 获取领奖中心列表
type GetDeathPrizeRequest struct {
AccessToken string
BossId string
RoomId string
}
// 参数合法性检验
func (request *GetDeathPrizeRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("用户Id不能为空")
return
}
if len(request.BossId) == 0 {
err = errors.New("BossId不能为空")
return
}
return
}