feat(app): update
This commit is contained in:
31
pkg/dto/request/SetSkillPriceRequest.go
Normal file
31
pkg/dto/request/SetSkillPriceRequest.go
Normal file
@ -0,0 +1,31 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user