weian.go 679 B

12345678910111213141516171819202122
  1. package dto
  2. import "cold-delivery/common/dto"
  3. type WeianGetOrderInfoReq struct {
  4. OrderId string `form:"orderId"`
  5. }
  6. type WeianGetWaybillNoReq struct {
  7. WaybillNo string `form:"waybillNo"`
  8. OrderId string `form:"orderId" vd:"len($)>0;msg:'订单编号不能为空'"`
  9. CompanyName string `form:"companyName" vd:"len($)>0;msg:'公司名称不能为空'"`
  10. }
  11. type WeianGetWaybillDataReq struct {
  12. dto.Pagination `search:"-"`
  13. WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_task" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  14. }
  15. func (m *WeianGetWaybillDataReq) GetNeedSearch() interface{} {
  16. return *m
  17. }