新增逻辑
This commit is contained in:
@@ -128,6 +128,7 @@ type OrderSub struct {
|
||||
TotalAmount int32 `gorm:"not null" json:"totalAmount"` //总金额
|
||||
PayAmount int32 `json:"payAmount"` //实际支付金额
|
||||
PayTime time.Time `gorm:"type:timestamp;" json:"payTime"` //支付时间
|
||||
PayRemark string `json:"payRemark"` //支付备注
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
}
|
||||
@@ -140,18 +141,28 @@ type OrderDetail struct {
|
||||
Amount int32 `gorm:"not null" json:"amount"` //价格
|
||||
}
|
||||
|
||||
// OrderServiceRecord 订单服务记录
|
||||
type OrderServiceRecord struct {
|
||||
Id int64 `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
OrderId string `gorm:"index:not null" json:"orderId"` //订单ID
|
||||
FilePath string `json:"filePath"` //照片路径
|
||||
Type int `gorm:"not null" json:"type"` //服务类型
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
|
||||
}
|
||||
|
||||
// ServiceCar 服务车辆
|
||||
type ServiceCar struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
CarNo string `gorm:"index;not null" json:"carNo"` //车牌号
|
||||
CarModel string `json:"carModel"` //车辆型号
|
||||
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"` //当前服务位置经度
|
||||
NowLatitude string `json:"nowLatitude"` //当前服务位置维度
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
CarNo string `gorm:"index;not null" json:"carNo"` //车牌号
|
||||
CarModel string `json:"carModel"` //车辆型号
|
||||
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"` //当前服务位置经度
|
||||
NowLatitude string `json:"nowLatitude"` //当前服务位置维度
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
ServiceAddr ServiceAddr `gorm:"-" json:"serviceAddr"` //当前服务区域
|
||||
}
|
||||
|
||||
// CarOrder 车辆订单
|
||||
|
||||
Reference in New Issue
Block a user