linix01
linix01
## GORM Playground Link https://github.com/go-gorm/playground/pull/1 ## Description type Book struct { //gorm.Model ID uint `gorm:"primaryKey"` Name string Auth string Price uint } 第一次没有加ID 字段,后修改结构体增加ID字段,执行db.AutoMigrate(&Book{})失败,报错信息如下: Incorrect table definition; there can be...
{ "_id" : ObjectId("579c51d107621eb62ef1f1f2"), "roleId" : "56823", "runePages" : [ { "_id" : ObjectId("57d2cdab383c044802428950"), "usePassiveSkills" : [], "inlayRunes" : [], "name" : "符石页1", "pageId" : 1 }, { "_id" :...