逻辑调整
This commit is contained in:
@@ -58,6 +58,7 @@ type ServiceAddr struct {
|
||||
Latitude string `json:"latitude"` //纬度
|
||||
Addr string `gorm:"not null" json:"addr"` //详细地址
|
||||
DistantGapMeters float64 `gorm:"not null" json:"distantGapMeters"` //服务最远距离 单位/米
|
||||
ServiceArea string `json:"serviceArea"` //服务区域
|
||||
}
|
||||
|
||||
// UserServiceAddr 用户服务地址
|
||||
@@ -66,11 +67,12 @@ type UserServiceAddr struct {
|
||||
Uid int64 `gorm:"index;not null" json:"uid"` //用户ID
|
||||
Name string `gorm:"not null" json:"name"` //名称
|
||||
Mobile string `gorm:"not null" json:"mobile"` //手机号
|
||||
AreaId int64 `gorm:"not null" json:"areaId"` //服务区域ID
|
||||
AreaId int64 `json:"areaId"` //服务区域ID
|
||||
Addr string `gorm:"not null" json:"addr"` //详细地址
|
||||
Longitude string `json:"longitude"` //经度
|
||||
Latitude string `json:"latitude"` //纬度
|
||||
Area string `gorm:"-" json:"area"` //服务区域
|
||||
AddrArea string `json:"addrArea"` //地址区域
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not null" json:"-"` //创建时间
|
||||
}
|
||||
|
||||
@@ -222,3 +224,10 @@ type ReserveTimeFilter struct {
|
||||
Type int `gorm:"not null" json:"type"` //类型 1日期 2小时
|
||||
Content string `gorm:"not null" json:"content"` //类型 具体内容 比如:2024-04-08 12
|
||||
}
|
||||
|
||||
// AddrServiceTime 服务地址时间排期
|
||||
type AddrServiceTime struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
ServiceAddrId int64 `gorm:"index;not null" json:"ServiceAddrId"` //服务地址ID
|
||||
Times string `gorm:"index;not null" json:"times"` //时间列表
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user