delete SingularTable

删除单表配置模式
This commit is contained in:
xxj
2020-12-08 18:06:18 +08:00
parent a97443b09f
commit 3516c2b4a5
12 changed files with 33 additions and 53 deletions

View File

@@ -16,9 +16,9 @@ import (
// getCamelName Big Hump or Capital Letter.大驼峰或者首字母大写
func getCamelName(name string) string {
if !config.GetSingularTable() { // If the table name plural is globally disabled.如果全局禁用表名复数
return mybigcamel.Marshal(strings.TrimSuffix(name, "s"))
}
// if !config.GetSingularTable() { // If the table name plural is globally disabled.如果全局禁用表名复数
// return mybigcamel.Marshal(strings.TrimSuffix(name, "s"))
// }
return mybigcamel.Marshal(name)
}