From 544d7eb97779fea9d210aab095859aba86d32f76 Mon Sep 17 00:00:00 2001 From: "yan.y" Date: Wed, 3 Apr 2024 13:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/api/order.go | 2 +- business/models/dataModel.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"` //当前服务位置经度