fix: fix misspell word primary
This commit is contained in:
@@ -115,7 +115,7 @@ type funDef struct {
|
||||
TableName string
|
||||
PreloadList []PreloadInfo // 外键列表,(生成关联数据)
|
||||
Em []EmInfo // index 列表
|
||||
Primay []FList // primay unique
|
||||
Primary []FList // primary unique
|
||||
Index []FList // index
|
||||
}
|
||||
|
||||
|
||||
@@ -376,9 +376,9 @@ func (m *_Model) generateFunc() (genOut []GenOutInfo) {
|
||||
// ---------end--
|
||||
}
|
||||
|
||||
data.Primay = append(data.Primay, primary...)
|
||||
data.Primay = append(data.Primay, unique...)
|
||||
data.Primay = append(data.Primay, uniqueIndex...)
|
||||
data.Primary = append(data.Primary, primary...)
|
||||
data.Primary = append(data.Primary, unique...)
|
||||
data.Primary = append(data.Primary, uniqueIndex...)
|
||||
data.Index = append(data.Index, index...)
|
||||
tmpl, err := template.New("gen_logic").
|
||||
Funcs(template.FuncMap{"GenPreloadList": GenPreloadList, "GenFListIndex": GenFListIndex, "CapLowercase": CapLowercase, "GetTablePrefixName": GetTablePrefixName}).
|
||||
|
||||
Reference in New Issue
Block a user