gorm tools

This commit is contained in:
xiexiaojun
2019-06-01 17:12:45 +08:00
parent 696fcb84f7
commit b42b4931b3
12 changed files with 430 additions and 105 deletions

View File

@@ -7,6 +7,8 @@ type Config struct {
CfgBase
MySQLInfo MysqlDbInfo `toml:"mysql_info"`
OutDir string `toml:"out_dir"`
Simple bool `toml:"simple"`
IsJsonTag bool `toml:"isJsonTag"`
SingularTable bool `toml:"singular_table"`
}
@@ -59,3 +61,13 @@ func SetSingularTable(b bool) {
func GetSingularTable() bool {
return _map.SingularTable
}
//简单输出
func GetSimple() bool {
return _map.Simple
}
//json标记
func GetIsJsonTag() bool {
return _map.IsJsonTag
}