fix gorm.SingularTable model

修复 gorm.SingularTable 表名复数问题
This commit is contained in:
谢小军
2020-02-21 02:21:17 +08:00
parent 6b14d480f0
commit 8585c30fbd
5 changed files with 3 additions and 51 deletions

View File

@@ -4,7 +4,7 @@ out_dir : ./model # 输出目录
url_tag : json # web url tag(json,db(https://github.com/google/go-querystring))
language : # 语言(English,中 文)
db_tag : gorm # 数据库标签(gorm,db)
singular_table : true # 单表模式:true:禁用表名复数,false:采用表复数 参考:gorm.SingularTable
singular_table : true # 单表模式:true:禁用表名复数,false:采用表复数 参考:gorm.SingularTable
simple : false # 简单输出(默认gorm标签不输出)
is_out_sql : false # 是否输出 sql 原信息
is_out_func : true # 是否输出 快捷函数