waybill_task.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. }