模型时 gorm 的 gen 工具自动生成的:
Date time.Time `gorm:"column:date;type:date;not null;comment:日期" json:"date"`
生成的查询
`date` = '2023-11-07 08:00:00' LIMIT 1
要怎么设置才能生成日期格式时2023-11-07的正确查询?
模型时 gorm 的 gen 工具自动生成的:
Date time.Time `gorm:"column:date;type:date;not null;comment:日期" json:"date"`
生成的查询
`date` = '2023-11-07 08:00:00' LIMIT 1
要怎么设置才能生成日期格式时2023-11-07的正确查询?