摘要: type User struct { Id string `gorm:"primarykey"` Name string CreatedAt time.Time `gorm:"index"` } db.AutoMigrate(&User{}) db.Create(&User{ Name: "u1", 阅读全文
posted @ 2021-05-16 19:06 winyh 阅读(166) 评论(0) 推荐(0) 编辑