tools

package
v0.0.0-...-cfb18d5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionsGenV3

func ActionsGenV3(tab tools.SysTables) error

func GenCodeV3

func GenCodeV3(c *gin.Context)

func GenMenuAndApi

func GenMenuAndApi(c *gin.Context)

func NOActionsGenV3

func NOActionsGenV3(tab tools.SysTables) error

func Preview

func Preview(c *gin.Context)

func QueryDBColumnPage

func QueryDBColumnPage(c *gin.Context)

@Summary 分页列表数据 / page list data @Description 数据库表列分页列表 / database table column page list @Tags 工具 / Tools @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} servers.Response "{"code": 200, "data": [...]}" @Router /api/v1/db/columns/page [get]

func QueryDBTablePage

func QueryDBTablePage(c *gin.Context)

@Summary 分页列表数据 / page list data @Description 数据库表分页列表 / database table page list @Tags 工具 / Tools @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} servers.Response "{"code": 200, "data": [...]}" @Router /api/v1/db/tables/page [get]

Types

type Tables

type Tables struct{}

func (Tables) Create

func (Tables) Create(c *gin.Context)

@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 (Tables) DeleteSysTables

func (Tables) DeleteSysTables(c *gin.Context)

@Summary 删除表结构 @Description 删除表结构 @Tags 工具 - 生成表 @Param tableId path int true "tableId" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/sys/tables/info/{ids} [delete]

func (Tables) Get

func (Tables) Get(c *gin.Context)

@Summary 获取配置 @Description 获取JSON @Tags 工具 - 生成表 @Param configKey path int true "configKey" @Success 200 {object} servers.Response "{"code": 200, "data": [...]}" @Router /api/v1/sys/tables/info/{id} [get] @Security Bearer

func (Tables) GetWithName

func (Tables) GetWithName(c *gin.Context)

func (Tables) QueryPage

func (Tables) QueryPage(c *gin.Context)

@Summary 分页列表数据 @Description 生成表分页列表 @Tags 工具 - 生成表 @Param tableName query string false "tableName / 数据表名称" @Param pageSize query int false "pageSize / 页条数" @Param pageIndex query int false "pageIndex / 页码" @Success 200 {object} servers.Response "{"code": 200, "data": [...]}" @Router /api/v1/sys/tables/page [get]

func (Tables) QueryTree

func (Tables) QueryTree(c *gin.Context)

func (Tables) Update

func (Tables) Update(c *gin.Context)

@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