weian.go 761 B

123456789101112131415161718192021222324
  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. StartTime string `form:"startTime"`
  15. EndTime string `form:"endTime"`
  16. }
  17. func (m *WeianGetWaybillDataReq) GetNeedSearch() interface{} {
  18. return *m
  19. }