Perfect annotation and remove redundant information output.
完善注释,去除多余的信息输出
This commit is contained in:
@@ -5,5 +5,5 @@ type IModel interface {
|
||||
GenModel() DBInfo
|
||||
GetDbName() string
|
||||
GetPkgName() string // Getting package names through config outdir configuration.通过config outdir 配置获取包名
|
||||
GetTableNames() string //获取设置表名
|
||||
GetTableNames() string // Getting tableNames by config. 获取设置的表名
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ func (m *mysqlModel) GetTableNames() string {
|
||||
return config.GetTableNames()
|
||||
}
|
||||
|
||||
// GetTableNames get table name.获取原始指定的表名
|
||||
// GetOriginTableNames get table name.获取原始指定的表名
|
||||
func (m *mysqlModel) GetOriginTableNames() string {
|
||||
return config.GetOriginTableNames()
|
||||
}
|
||||
@@ -84,7 +84,6 @@ func (m *mysqlModel) getPackageInfo(orm *mysqldb.MySqlDB, info *model.DBInfo) {
|
||||
// }
|
||||
// tabls = newTabls
|
||||
// }
|
||||
fmt.Println(tabls)
|
||||
for tabName, notes := range tabls {
|
||||
var tab model.TabInfo
|
||||
tab.Name = tabName
|
||||
@@ -111,7 +110,6 @@ func (m *mysqlModel) getPackageInfo(orm *mysqldb.MySqlDB, info *model.DBInfo) {
|
||||
|
||||
info.TabList = append(info.TabList, tab)
|
||||
}
|
||||
fmt.Println(info.TabList)
|
||||
// sort tables
|
||||
sort.Slice(info.TabList, func(i, j int) bool {
|
||||
return info.TabList[i].Name < info.TabList[j].Name
|
||||
|
||||
Reference in New Issue
Block a user