package request import "errors" // 设置技能价格 type SetSkillPriceRequest struct { BaseRequest UserSkillId string Price string } // 签名验证 func (request *SetSkillPriceRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } if len(request.UserSkillId) == 0 { err = errors.New("UserSkillId不能为空") return } if len(request.Price) == 0 { err = errors.New("Price不能为空") return } return }