fix: fix misspell word primary

This commit is contained in:
changle
2021-06-08 11:30:56 +08:00
parent 96794856b6
commit 824d25fb3a
8 changed files with 12 additions and 12 deletions

View File

@@ -162,7 +162,7 @@ type UserAccountTbl struct {
## 6. support func export
### The exported function is only the auxiliary class function of Gorm, and calls Gorm completely
```
// FetchByPrimaryKey primay or index 获取唯一内容
// FetchByPrimaryKey primary or index 获取唯一内容
func (obj *_UserAccountTblMgr) FetchByPrimaryKey(ID int) (result UserAccountTbl, err error) {
err = obj.DB.Table(obj.GetTableName()).Where("id = ?", ID).Find(&result).Error
if err == nil && obj.isRelated {