Documentation ¶
Index ¶
- type Gen
- func (e Gen) GenApiToFile(c *gin.Context)
- func (e Gen) GenCode(c *gin.Context)
- func (e Gen) GenMenuAndApi(c *gin.Context)
- func (e Gen) GetDBColumnList(c *gin.Context)
- func (e Gen) GetDBTableList(c *gin.Context)
- func (e Gen) NOActionsGen(c *gin.Context, tab tools.SysTables)
- func (e Gen) Preview(c *gin.Context)
- type SysTable
- func (e SysTable) Delete(c *gin.Context)
- func (e SysTable) Get(c *gin.Context)
- func (e SysTable) GetPage(c *gin.Context)
- func (e SysTable) GetSysTablesInfo(c *gin.Context)
- func (e SysTable) GetSysTablesTree(c *gin.Context)
- func (e SysTable) Insert(c *gin.Context)
- func (e SysTable) Update(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gen ¶
func (Gen) GenApiToFile ¶
func (Gen) GenMenuAndApi ¶
func (Gen) GetDBColumnList ¶
GetDBColumnList 分页列表数据 @Summary 分页列表数据 / page list data @Description 数据库表列分页列表 / database table column page list @Tags 工具 / 生成工具 @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} response.Response "{"code": 200, "data": [...]}" @Router /api/v1/db/columns/page [get]
func (Gen) GetDBTableList ¶
GetDBTableList 分页列表数据 @Summary 分页列表数据 / page list data @Description 数据库表分页列表 / database table page list @Tags 工具 / 生成工具 @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} response.Response "{"code": 200, "data": [...]}" @Router /api/v1/db/tables/page [get]
type SysTable ¶
func (SysTable) Delete ¶
Delete @Summary 删除表结构 @Description 删除表结构 @Tags 工具 / 生成工具 @Param tableId path int true "tableId" @Success 200 {string} string "{"code": 200, "message": ginI18n.MustGetMessage(c, "Successfully deleted")}" @Success 200 {string} string "{"code": -1, "message": ginI18n.MustGetMessage(c, "Failed to delete")}" @Router /api/v1/sys/tables/info/{tableId} [delete]
func (SysTable) Get ¶
Get @Summary 获取配置 @Description 获取JSON @Tags 工具 / 生成工具 @Param configKey path int true "configKey" @Success 200 {object} response.Response "{"code": 200, "data": [...]}" @Router /api/v1/sys/tables/info/{tableId} [get] @Security Bearer
func (SysTable) GetPage ¶
GetPage 分页列表数据 @Summary 分页列表数据 @Description 生成表分页列表 @Tags 工具 / 生成工具 @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} response.Response "{"code": 200, "data": [...]}" @Router /api/v1/sys/tables/page [get]
func (SysTable) GetSysTablesInfo ¶
func (SysTable) GetSysTablesTree ¶
func (SysTable) Insert ¶
Insert @Summary 添加表结构 @Description 添加表结构 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param tables query string false "tableName / 数据表名称" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/sys/tables/info [post] @Security Bearer
func (SysTable) Update ¶
Update @Summary 修改表结构 @Description 修改表结构 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body tools.SysTables true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/sys/tables/info [put] @Security Bearer