新增接口

This commit is contained in:
yiyan
2024-11-18 00:59:54 +08:00
parent cc4957813b
commit 3e2ccbeb41
5 changed files with 77 additions and 25 deletions
+10
View File
@@ -334,3 +334,13 @@ type PayOrder struct {
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
Status int `gorm:"default:1" json:"-"` //状态
}
// ServiceCarLocation 服务车辆定位
type ServiceCarLocation struct {
Id int `gorm:"primaryKey;autoIncrement"` //id
Uid int64 `gorm:"not null" json:"uid"` //用户ID
Longitude string `json:"longitude"` //经度
Latitude string `json:"latitude"` //纬度
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
Status int `gorm:"default:1" json:"-"` //状态
}