diff --git a/business/api/order.go b/business/api/order.go index bece0c3..21a47ed 100644 --- a/business/api/order.go +++ b/business/api/order.go @@ -90,7 +90,7 @@ func (p DefParty) orderCreate() web_iris.Party { } type OrderListRequest struct { - Status int //订单状态 + Status int //订单状态 0所有 1待服务 2服务中 3已完成 4已取消 PageNo int //页码 PageSize int //数据数量 } diff --git a/business/models/dataModel.go b/business/models/dataModel.go index 1215447..f5375e7 100644 --- a/business/models/dataModel.go +++ b/business/models/dataModel.go @@ -145,7 +145,7 @@ type ServiceCar struct { Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id CarNo string `gorm:"index;not null" json:"carNo"` //车牌号 CarModel string `json:"carModel"` //车辆型号 - ServiceAddr int64 `gorm:"not null" json:"serviceAddr"` //服务地址ID + ServiceAddrId int64 `gorm:"not null" json:"serviceAddrId"` //服务地址ID ServiceStatus int `gorm:"not null" json:"serviceStatus"` //当前服务状态 0空闲中 1排单中 2服务中 NowServiceAddr string `json:"nowServiceAddr"` //当前服务地址 开始服务记录位置 NowLongitude string `json:"nowLongitude"` //当前服务位置经度