xorm框架自动创建时间和更新时间

版权声明:本文为原创文章,未经允许不得转载 https://blog.csdn.net/qq_33875256/article/details/84967680

type User struct {
CreatTime  time.Time `xorm:"creat_time created" json:"creat_time" description:"创建时间"`
UpdateTime time.Time `xorm:"update_time updated"json:"update_time"description:"更新时间"`
}

猜你喜欢

转载自blog.csdn.net/qq_33875256/article/details/84967680