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

27 lines
430 B
Go

package request
import "errors"
type GetGoodsOrderListRequest struct {
BaseRequest
GoodsId string
PageNo string
PageSize string
}
// 参数合法性检验
func (request *GetGoodsOrderListRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.GoodsId) == 0 {
err = errors.New("GoodsId不能为空")
return
}
return
}