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 }