feat(app): update
This commit is contained in:
@ -2,8 +2,6 @@ package request
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.ddegame.cn/open/servicebase/pkg/common/order"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type GetSkillLevelListRequest struct {
|
type GetSkillLevelListRequest struct {
|
||||||
@ -46,12 +44,12 @@ func (request *GetOrderRankReq) CheckParameter() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(request.GroupByFields) != 0 {
|
if len(request.GroupByFields) != 0 {
|
||||||
for _, field := range request.GroupByFields {
|
for _, _ = range request.GroupByFields {
|
||||||
_, ok := order.WhitelistFields[field]
|
// _, ok := order.WhitelistFields[field]
|
||||||
if !ok {
|
// if !ok {
|
||||||
err = errors.New("包含不支持的字段")
|
// err = errors.New("包含不支持的字段")
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user