gorm tools
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user