Files
servicebase/pkg/dto/request/SetSkillPriceRequest.go
2025-11-19 14:24:13 +08:00

32 lines
515 B
Go

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
}