feat(app): update
This commit is contained in:
27
pkg/dto/request/GetSkillSkuListH5Request.go
Normal file
27
pkg/dto/request/GetSkillSkuListH5Request.go
Normal file
@ -0,0 +1,27 @@
|
||||
package request
|
||||
|
||||
import "errors"
|
||||
|
||||
type GetSkillSkuListRequestH5 struct {
|
||||
AccessToken string
|
||||
SkillId string
|
||||
ShortName string
|
||||
SortBy string // 排序 1=智能 2=最新 3=人气
|
||||
Gender string // 性别 0=女 1=男 ""=不限
|
||||
Online string // 在线 1=在线 ""=不限
|
||||
Area string // 分区
|
||||
SkillLevel string // 技能等级 ""=不限
|
||||
AnchorId string // 分页锚点ID
|
||||
PageSize string
|
||||
}
|
||||
|
||||
// 参数合法性检验
|
||||
func (request *GetSkillSkuListRequestH5) CheckParameter() (err error) {
|
||||
|
||||
if len(request.SkillId) == 0 {
|
||||
err = errors.New("SkillId不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user