新增逻辑 根据车辆数量及单次服务数量来决定时间点是否可预约

This commit is contained in:
yan.y
2024-04-09 11:32:10 +08:00
parent 5421ae8a87
commit 74ae25bcd0
7 changed files with 181 additions and 0 deletions
+7
View File
@@ -193,3 +193,10 @@ type ServiceUserMarkRecord struct {
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
}
// ReserveTimeFilter 服务过滤时间
type ReserveTimeFilter struct {
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
Type int `gorm:"not null" json:"type"` //类型 1日期 2小时
Content string `gorm:"not null" json:"content"` //类型 具体内容 比如:2024-04-08 12
}