26 lines
426 B
Go
26 lines
426 B
Go
package request
|
|
|
|
import "errors"
|
|
|
|
type GetUserStoreModelRequest struct {
|
|
AccessToken string
|
|
GoodsId string
|
|
WithProp string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetUserStoreModelRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.GoodsId) == 0 {
|
|
err = errors.New("GoodsId不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|