refactor: 机器文件操作界面重构

This commit is contained in:
meilin.huang
2023-09-06 18:06:52 +08:00
parent 0cb7a7cf83
commit 25b0d276b3
11 changed files with 857 additions and 676 deletions

View File

@@ -94,8 +94,7 @@ func (d *Db) DeleteDb(rc *req.Ctx) {
func (d *Db) getDbConnection(g *gin.Context) *application.DbConnection {
dbName := g.Query("db")
biz.NotEmpty(dbName, "db不能为空")
dbId := getDbId(g)
return d.DbApp.GetDbConnection(dbId, dbName)
return d.DbApp.GetDbConnection(getDbId(g), dbName)
}
func (d *Db) TableInfos(rc *req.Ctx) {