增加指定表model生成功能

This commit is contained in:
yanjiangtao
2021-03-30 18:05:36 +08:00
parent c29e59cf77
commit d6f49c5cce
8 changed files with 111 additions and 14 deletions

View File

@@ -51,6 +51,11 @@ func (m *cnfModel) GenModel() model.DBInfo {
return dbInfo
}
// GetTableNames get table name.获取指定的表名
func (m *cnfModel) GetTableNames() string {
return config.GetTableNames()
}
// GetDbName get database name.获取数据库名字
func (m *cnfModel) GetDbName() string {
dir := config.GetDbInfo().Host