waybill_task.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package dto
  2. import "cold-delivery/common/dto"
  3. // 运单
  4. type WaybillTaskGetPageReq struct {
  5. //dto.Pagination `search:"-"`
  6. WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_task" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  7. WaybillTaskOrder
  8. }
  9. type WaybillTaskOrder struct {
  10. CreatedAtOrder string `search:"type:order;column:created_at;table:waybill_task" form:"createdAtOrder" default:"asc"`
  11. }
  12. func (m *WaybillTaskGetPageReq) GetNeedSearch() interface{} {
  13. return *m
  14. }
  15. type WaybillTaskGetDataPageReq struct {
  16. dto.Pagination `search:"-"`
  17. WaybillNo string `form:"waybillNo" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  18. TaskId int `form:"taskId"`
  19. T_ids []int `form:"t_ids"`
  20. StartTime string `form:"startTime"`
  21. EndTime string `form:"endTime"`
  22. }
  23. func (m *WaybillTaskGetDataPageReq) GetNeedSearch() interface{} {
  24. return *m
  25. }
  26. // 获取运单轨迹
  27. type WaybillGetLocusReq struct {
  28. WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_task" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  29. CreatedAtOrder string `search:"type:order;column:created_at;table:waybill_task" form:"createdAtOrder" default:"asc"`
  30. }
  31. func (m *WaybillGetLocusReq) GetNeedSearch() interface{} {
  32. return *m
  33. }
  34. type WaybillTaskGetNewestDataPageReq struct {
  35. WaybillNo string `form:"waybillNo" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  36. }