path

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine) error

Types

type ApiPath

type ApiPath struct {
	// contains filtered or unexported fields
}

func NewSysApi

func NewSysApi(c framework.Container) *ApiPath

func (*ApiPath) AddApi

func (a *ApiPath) AddApi(c *gin.Context)

AddApi godoc @Summary 新增Api接口 @Security ApiKeyAuth @Description 新增Api接口 @accept application/json @Produce application/json @Param data body path.DevopsSysApi true "Api" @Tags Api @Success 200 {object} base.Response @Router /sys/api/add [post]

func (*ApiPath) DeleteApi

func (a *ApiPath) DeleteApi(c *gin.Context)

DeleteApi godoc @Summary 删除Api接口 @Security ApiKeyAuth @Description 删除Api接口 @accept application/json @Produce application/json @Param ids body string true "Api ids" @Tags Api @Success 200 {object} base.Response @Router /sys/api/delete [delete]

func (*ApiPath) GetApi

func (a *ApiPath) GetApi(c *gin.Context)

GetApi godoc @Summary 获得Api接口 @Security ApiKeyAuth @Description 获得Api接口 @accept application/json @Produce application/json @Param id path int true "Api id" @Tags Api @Success 200 {object} base.Response @Router /sys/api/{id} [get]

func (*ApiPath) ListApi

func (a *ApiPath) ListApi(c *gin.Context)

ListApi godoc @Summary 获得Api列表接口 @Security ApiKeyAuth @Description 获得Api列表接口 @accept application/json @Produce application/json @Param data body base.PageRequest true "页数,页大小,筛选条件" @Tags Api @Success 200 {object} base.Response @Router /sys/api/list [post]

func (*ApiPath) ModifyApi

func (a *ApiPath) ModifyApi(c *gin.Context)

ModifyApi godoc @Summary 修改Api接口 @Security ApiKeyAuth @Description 修改Api接口 @accept application/json @Produce application/json @Param data body path.DevopsSysApi true "Api" @Tags Api @Success 200 {object} base.Response @Router /sys/api/modify [post]

Jump to

Keyboard shortcuts

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