This commit is contained in:
xxj
2021-06-13 21:56:36 +08:00
8 changed files with 12 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ func TestFuncFetchBy(t *testing.T) {
accountMgr := model.AccountMgr(db)
accountMgr.SetIsRelated(true) // 打开预加载 (外键)
account, err := accountMgr.FetchByPrimaryKey(2) // primay key
account, err := accountMgr.FetchByPrimaryKey(2) // primary key
fmt.Println(err)
fmt.Println(account)