Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTemplateRoutes ¶ added in v0.0.145
Types ¶
type Controller ¶ added in v0.0.145
type Controller struct {
}
func (*Controller) Delete ¶ added in v0.0.145
func (t *Controller) Delete(c *response.Context)
@Summary 删除模板 @Description 删除一个或多个自定义模板 @Security BearerAuth @Param ids path string true "要删除的模板ID,多个用逗号分隔" @Success 200 {object} string "操作成功" @Router /mgm/custom/template/delete/{ids} [post]
func (*Controller) List ¶ added in v0.0.145
func (t *Controller) List(c *response.Context)
@Summary 模板列表 @Description 获取所有自定义模板信息 @Security BearerAuth @Success 200 {object} string @Router /mgm/custom/template/list [get]
func (*Controller) ListKind ¶ added in v0.0.145
func (t *Controller) ListKind(c *response.Context)
func (*Controller) Save ¶ added in v0.0.145
func (t *Controller) Save(c *response.Context)
@Summary 保存模板 @Description 新增或更新自定义模板 @Security BearerAuth @Param template body models.CustomTemplate true "模板信息" @Success 200 {object} string "返回模板ID" @Router /mgm/custom/template/save [post]
Click to show internal directories.
Click to hide internal directories.