refactor🎨 修改工具写法

This commit is contained in:
wenjianzhang committed 2021-05-08 18:28:51 +08:00
1 parent 1c046d9ddd
commit a8c5f19075
4 files changed
+5 -2

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ import (
"go-admin/app/admin/models/tools"
)
// GetDBColumnList 分页列表数据
// @Summary 分页列表数据 / page list data
// @Description 数据库表列分页列表 / database table column page list
// @Tags 工具 / Tools
+1 -1
View File
@@ -12,6 +12,7 @@ import (
"go-admin/app/admin/models/tools"
)
// GetDBTableList 分页列表数据
// @Summary 分页列表数据 / page list data
// @Description 数据库表分页列表 / database table page list
// @Tags 工具 / Tools
@@ -32,7 +33,6 @@ func (e *Gen) GetDBTableList(c *gin.Context) {
err = errors.New("对不起,sqlite3 或 postgres 不支持代码生成!")
log.Warn(err)
e.Error(403, err, "")
//c.JSON(http.StatusOK, res.ReturnError(500))
return
}
+2 -1
View File
@@ -338,8 +338,9 @@ func (e Gen) ActionsGen(c *gin.Context, tab tools.SysTables) {
}
func (e Gen) GenMenuAndApi(c *gin.Context) {
log := api.GetRequestLogger(c)
e.Context = c
log := e.GetLogger()
table := tools.SysTables{}
timeNow := pkg.GetCurrentTime()
id, err := pkg.StringToInt(c.Param("tableId"))
+1
View File
@@ -18,6 +18,7 @@ type SysTable struct {
apis.Api
}
// GetSysTableList 分页列表数据
// @Summary 分页列表数据
// @Description 生成表分页列表
// @Tags 工具 - 生成表