waybill_logistics.go 676 B

123456789101112131415161718
  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. }
  12. func (m *WaybillLogisticsGetPageReq) GetNeedSearch() interface{} {
  13. return *m
  14. }