controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	response.Api
}

Github github

func (Github) CreatOrUpdate

func (e Github) CreatOrUpdate(c *gin.Context)

CreatOrUpdate 创建或更新github配置 @Summary 创建或更新github配置 @Description 创建或更新github配置 @Tags generator @Accept application/json @Product application/json @Param data body form.GithubCreateReq true "data" @Success 200 {object} response.Response @Router /generator/api/v1/github/create-or-update [post] @Security Bearer

func (Github) Get

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

Get 获取github配置 @Summary 获取github配置 @Description 获取github配置 @Tags generator @Accept application/json @Product application/json @Success 200 {object} response.Response{data=form.GithubGetResp} @Router /generator/api/v1/github/get [get] @Security Bearer

func (Github) Other

func (e Github) Other(r *gin.RouterGroup)

func (Github) Path

func (Github) Path() string

type Template

type Template struct {
	response.Api
}

func (Template) Generate

func (e Template) Generate(c *gin.Context)

Generate 从模版生成代码 @Summary 从模版生成代码 @Description 从模版生成代码 @Tags generator @Accept application/json @Product application/json @Param data body form.TemplateGenerateReq true "data" @Success 200 {object} response.Response{data=form.TemplateGenerateResp} @Router /generator/api/v1/template/generate [post] @Security Bearer

func (Template) GetBranches

func (e Template) GetBranches(c *gin.Context)

GetBranches 获取template分支 @Summary 获取template分支 @Description 获取template分支 @Tags generator @Accept application/json @Product application/json @Param source query string true "template source" @Success 200 {object} response.Response{data=form.TemplateGetBranchesResp} @Router /generator/api/v1/template/get-branches [get] @Security Bearer

func (Template) GetParams

func (e Template) GetParams(c *gin.Context)

GetParams 获取template参数配置 @Summary 获取template参数配置 @Description 获取template参数配置 @Tags generator @Accept application/json @Product application/json @Param source query string true "template source" @Param branch query string false "branch default:HEAD" @Param path query string false "path default:." @Success 200 {object} response.Response{data=form.TemplateGetParamsResp} @Router /generator/api/v1/template/get-params [get] @Security Bearer

func (Template) GetPath

func (e Template) GetPath(c *gin.Context)

GetPath 获取template文件路径list @Summary 获取template文件路径list @Description 获取template文件路径list @Tags generator @Accept application/json @Product application/json @Param source query string true "template source" @Param branch query string false "branch default:HEAD" @Success 200 {object} response.Response{data=form.TemplateGetPathResp} @Router /generator/api/v1/template/get-path [get] @Security Bearer

func (Template) Other

func (e Template) Other(r *gin.RouterGroup)

func (Template) Path

func (Template) Path() string

Jump to

Keyboard shortcuts

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