apis

package
v0.0.0-...-48fb7be Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiGenTables = GenTablesApi{}
View Source
var (
	InitApi = Init{}
)

Functions

func TypeGo2Ts

func TypeGo2Ts(t string) string

Types

type GenTablesApi

type GenTablesApi struct {
	apis.NApi
}

func (*GenTablesApi) Del

func (e *GenTablesApi) Del(c *gin.Context)

Del 删除GenTables @Summary 删除GenTables @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body base.ReqIds true "body" @Success 200 {object} base.Resp{data=models.GenTables} "{"code": 200, "data": [...]}" @Router /api/v1/tools/gen/del [post]

func (*GenTablesApi) GenCode

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

GenCode @Summary 生成代码 @Description 生成代码 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body dto.GenCodeReq true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Router /api/v1/tools/gen/code [post]

func (*GenTablesApi) GetDBS

func (e *GenTablesApi) GetDBS(c *gin.Context)

GetDBS @Summary 获取配置的数据库 @Description 获取配置的数据库 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Success 200 {object} base.Resp{data=[]dto.DbOption} "{"code": 200, "data": [...]}" @Router /api/v1/tools/gen/dbs [post]

func (*GenTablesApi) GetDBTableList

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

GetDBTableList 分页列表数据 @Summary 分页列表数据 / page list data @Description 数据库表分页列表 / database table page list @Tags 工具 / 生成工具 @Param data body dto.DBReq true "body" @Success 200 {object} base.Resp "{"code": 200, "data": [...]}" @Router /api/v1/tools/gen/db/tables [post]

func (*GenTablesApi) Insert

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

Insert @Summary 添加表结构 @Description 添加表结构 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body dto.ImpTablesReq true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/tools/gen/add [post]

func (*GenTablesApi) QueryPage

func (e *GenTablesApi) QueryPage(c *gin.Context)

QueryPage 获取GenTables列表 @Summary 获取GenTables列表 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body dto.GenTablesGetPageReq true "body" @Success 200 {object} base.Resp{data=base.PageResp{list=[]models.GenTables}} "{"code": 200, "data": [...]}" @Router /api/v1/tools/gen/page [post]

func (*GenTablesApi) Update

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

Update @Summary 修改表结构 @Description 修改表结构 @Tags 工具 / 生成工具 @Accept application/json @Product application/json @Param data body models.GenTables true "body" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/tools/gen/update [POST]

type Init

type Init struct {
	apis.NApi
}

func (*Init) Monitor

func (e *Init) Monitor(c *gin.Context)

Monitor 监控 @Summary 监控 @Tags 工具 / 监控 @Accept application/json @Product application/json @Success 200 {object} base.Resp{data=utils.Server} "{"code": 200, "data": [...]}" @Router /api/v1/tools/monitor [post] @Security Bearer

Jump to

Keyboard shortcuts

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