tools

package
v0.0.0-...-88540c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gen

type Gen struct {
	api.Api
}

func (Gen) GenApiToFile

func (e Gen) GenApiToFile(c *gin.Context)

func (Gen) GenCode

func (e Gen) GenCode(c *gin.Context)

func (Gen) GenMenuAndApi

func (e Gen) GenMenuAndApi(c *gin.Context)

func (Gen) GetDBColumnList

func (e Gen) GetDBColumnList(c *gin.Context)

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

func (e Gen) GetDBTableList(c *gin.Context)

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]

func (Gen) NOActionsGen

func (e Gen) NOActionsGen(c *gin.Context, tab tools.SysTables)

func (Gen) Preview

func (e Gen) Preview(c *gin.Context)

type SysTable

type SysTable struct {
	api.Api
}

func (SysTable) Delete

func (e SysTable) Delete(c *gin.Context)

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

func (e SysTable) Get(c *gin.Context)

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

func (e SysTable) GetPage(c *gin.Context)

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 (e SysTable) GetSysTablesInfo(c *gin.Context)

func (SysTable) GetSysTablesTree

func (e SysTable) GetSysTablesTree(c *gin.Context)

func (SysTable) Insert

func (e SysTable) Insert(c *gin.Context)

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

func (e SysTable) Update(c *gin.Context)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL