46 lines
887 B
Go
46 lines
887 B
Go
package request
|
|
|
|
import "errors"
|
|
|
|
type GetUserSkillRateListRequest struct {
|
|
AccessToken string
|
|
UserSkillId string
|
|
PageNo string
|
|
PageSize string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetUserSkillRateListRequest) CheckParameter() (err error) {
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.UserSkillId) == 0 {
|
|
err = errors.New("SkillId不能为空")
|
|
return
|
|
}
|
|
return
|
|
}
|
|
|
|
type GetUserSkillRateListByUserIDRequest struct {
|
|
AccessToken string
|
|
UserId string
|
|
PageNo string
|
|
PageSize string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetUserSkillRateListByUserIDRequest) CheckParameter() (err error) {
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.UserId) == 0 {
|
|
err = errors.New("用户ID不能为空")
|
|
return
|
|
}
|
|
return
|
|
}
|