![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
gorm
kkkwant2050
这个作者很懒,什么都没留下…
展开
-
gorm datetime时间
从mysql取出 type ExcCodeExport struct { StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` } e := EndTime.Format("2006-01-02 15:04:05")原创 2021-06-07 15:10:41 · 1232 阅读 · 1 评论 -
gorm 各种操作
type User struct { Id uint32 `gorm:"column:id;primary_key" sql:"-"` Age uint32 `gorm:"column:age"` Name string `gorm:"column:name"` CreatedAt time.Time `gorm:"column:created_at" sql:"-"` AddressList .原创 2020-12-30 17:10:45 · 246 阅读 · 0 评论