package dto import ( "cold-logistics/common/dto" model2 "cold-logistics/common/model" ) // 运单 type WaybillTaskGetPageReq struct { //dto.Pagination `search:"-"` WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_task" vd:"len($)>0;msg:'运单编号不能为空'"` // 运单编号-必填 WaybillTaskOrder } type WaybillTaskOrder struct { IDOrder string `search:"type:order;column:id;table:waybill_task" form:"id" default:"asc"` } func (m *WaybillTaskGetPageReq) GetNeedSearch() interface{} { return *m } type WaybillTaskGetDataPageReq struct { dto.Pagination `search:"-"` WaybillNo string `form:"waybillNo" vd:"len($)>0;msg:'运单编号不能为空'"` // 运单编号-必填 TaskId int `form:"taskId"` T_ids []int `form:"t_ids"` StartTime string `form:"startTime"` EndTime string `form:"endTime"` } func (m *WaybillTaskGetDataPageReq) GetNeedSearch() interface{} { return *m } // 获取运单轨迹 type WaybillGetLocusReq struct { WaybillNo string `form:"waybillNo" search:"type:contains;column:waybill_no;table:waybill_task" vd:"len($)>0;msg:'运单编号不能为空'"` // 运单编号-必填 CreatedAtOrder string `search:"type:order;column:created_at;table:waybill_task" form:"createdAtOrder" default:"asc"` } func (m *WaybillGetLocusReq) GetNeedSearch() interface{} { return *m } type WaybillTaskGetNewestDataPageReq struct { WaybillNo string `form:"waybillNo" vd:"len($)>0;msg:'运单编号不能为空'"` // 运单编号-必填 } type WaybillTaskUpdateReq struct { WaybillTaskList []struct { Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码 StartTime model2.Time `json:"startTime" gorm:"size:128"` // 开始时间 EndTime model2.Time `json:"endTime" gorm:"size:128"` // 结束时间 } `json:"waybillTaskList"` model2.ControlBy `swaggerignore:"true"` model2.DeptBy `swaggerignore:"true"` }