sort tables by name
fix typo
This commit is contained in:
@@ -94,7 +94,7 @@ func getGormModelElement() []EmInfo {
|
||||
return result
|
||||
}
|
||||
|
||||
func buildFList(list *[]FList, key ColumusKey, keyName, tp, colName string) {
|
||||
func buildFList(list *[]FList, key ColumnsKey, keyName, tp, colName string) {
|
||||
for i := 0; i < len(*list); i++ {
|
||||
if (*list)[i].KeyName == keyName {
|
||||
(*list)[i].Kem = append((*list)[i].Kem, FEm{
|
||||
@@ -171,14 +171,14 @@ func GenFListIndex(info FList, status int) string {
|
||||
|
||||
func widthFunctionName(info FList) string {
|
||||
switch info.Key {
|
||||
// case ColumusKeyDefault:
|
||||
case ColumusKeyPrimary: // primary key.主键
|
||||
// case ColumnsKeyDefault:
|
||||
case ColumnsKeyPrimary: // primary key.主键
|
||||
return "FetchByPrimaryKey"
|
||||
case ColumusKeyUnique: // unique key.唯一索引
|
||||
case ColumnsKeyUnique: // unique key.唯一索引
|
||||
return "FetchByUnique"
|
||||
case ColumusKeyIndex: // index key.复合索引
|
||||
case ColumnsKeyIndex: // index key.复合索引
|
||||
return "FetchBy" + getCamelName(info.KeyName) + "Index"
|
||||
case ColumusKeyUniqueIndex: // unique index key.唯一复合索引
|
||||
case ColumnsKeyUniqueIndex: // unique index key.唯一复合索引
|
||||
return "FetchBy" + getCamelName(info.KeyName) + "UniqueIndex"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user