waybill_logistics.go 785 B

12345678910111213141516171819
  1. package dto
  2. // 运单
  3. type WaybillLogisticsGetPageReq struct {
  4. //dto.Pagination `search:"-"`
  5. WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_logistics" vd:"len($)>0;msg:'订单编号不能为空'"` // 运单编号-必填
  6. Status int `form:"status" search:"type:exact;column:status;table:waybill_logistics"` // 状态
  7. WaybillLogisticsOrder
  8. }
  9. type WaybillLogisticsOrder struct {
  10. CreatedAtOrder string `search:"type:order;column:created_at;table:waybill_logistics" form:"createdAtOrder" default:"desc"`
  11. IdOrder string `search:"type:order;column:id;table:waybill_logistics" form:"idOrder" default:"desc"`
  12. }
  13. func (m *WaybillLogisticsGetPageReq) GetNeedSearch() interface{} {
  14. return *m
  15. }