慕沐7109202
v10和v8有点区别
日落梧桐
mengmeng5200
yuzhewo
编程界的奇葩 2006-01-02 15:04:05
weixin_慕村4141594
v8和v9的写法有区别,参考2楼的解释(https://www.imooc.com/qadetail/336366)
type Booking struct {
CheckIn time.Time `form:"check_in" validate:"required,bookableDate" time_format:"2006-01-02"`
CheckOut time.Time `form:"check_out" validate:"required,gtfield=CheckIn" time_format:"2006-01-02"`
}
错落3980253
对的,V9就是这样用的