Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
Github github
func (Github) CreatOrUpdate ¶
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 ¶
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)
type Template ¶
func (Template) Generate ¶
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 ¶
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 ¶
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 ¶
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)