Documentation
¶
Index ¶
- type CreateTemplateGroupReq
- type CreateTemplateReq
- type CreateType
- type DeleteTemplateReq
- type DetailTemplateReq
- type GroupHandler
- type Handler
- func (h *Handler) CreateTemplate(ctx *gin.Context, req CreateTemplateReq) (ginx.Result, error)
- func (h *Handler) DeleteTemplate(ctx *gin.Context, req DeleteTemplateReq) (ginx.Result, error)
- func (h *Handler) DetailTemplate(ctx *gin.Context, req DetailTemplateReq) (ginx.Result, error)
- func (h *Handler) ListTemplate(ctx *gin.Context, req ListTemplateReq) (ginx.Result, error)
- func (h *Handler) Pipeline(ctx *gin.Context) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- func (h *Handler) UpdateTemplate(ctx *gin.Context, req UpdateTemplateReq) (ginx.Result, error)
- type ListTemplateReq
- type Page
- type RetrieveTemplateCombination
- type RetrieveTemplateGroup
- type RetrieveTemplates
- type Template
- type TemplateCombination
- type TemplateGroup
- type UpdateTemplateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTemplateGroupReq ¶
type CreateTemplateReq ¶
type CreateType ¶
type CreateType uint8
type DeleteTemplateReq ¶
type DeleteTemplateReq struct {
Id int64 `json:"id"`
}
type DetailTemplateReq ¶
type DetailTemplateReq struct {
Id int64 `json:"id"`
}
type GroupHandler ¶
type GroupHandler struct {
// contains filtered or unexported fields
}
func NewGroupHandler ¶
func NewGroupHandler(svc service.GroupService) *GroupHandler
func (*GroupHandler) CreateTemplateGroup ¶
func (h *GroupHandler) CreateTemplateGroup(ctx *gin.Context, req CreateTemplateGroupReq) (ginx.Result, error)
func (*GroupHandler) ListTemplateGroup ¶
func (*GroupHandler) PrivateRoutes ¶ added in v1.3.0
func (h *GroupHandler) PrivateRoutes(server *gin.Engine)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(svc service.Service, groupSvc service.GroupService) *Handler
func (*Handler) CreateTemplate ¶
func (*Handler) DeleteTemplate ¶
func (*Handler) DetailTemplate ¶
func (*Handler) ListTemplate ¶
func (*Handler) PrivateRoutes ¶ added in v1.3.0
func (*Handler) UpdateTemplate ¶
type ListTemplateReq ¶
type ListTemplateReq struct {
Page
}
type RetrieveTemplateCombination ¶
type RetrieveTemplateCombination struct {
TemplateCombinations []TemplateCombination `json:"template_combinations"`
}
type RetrieveTemplateGroup ¶
type RetrieveTemplateGroup struct {
TemplateGroups []TemplateGroup `json:"template_groups"`
Total int64 `json:"total"`
}
type RetrieveTemplates ¶
type Template ¶
type Template struct {
Id int64 `json:"id"`
Name string `json:"name"`
WorkflowId int64 `json:"workflow_id"`
Icon string `json:"icon"`
GroupId int64 `json:"group_id"`
CreateType CreateType `json:"create_type"`
Rules []map[string]interface{} `json:"rules"`
Options map[string]interface{} `json:"options"`
Desc string `json:"desc"`
}
type TemplateCombination ¶
type TemplateCombination struct {
Id int64 `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Total int64 `json:"total"`
Templates []Template `json:"templates"`
}
TemplateCombination 一组数据
type TemplateGroup ¶
Click to show internal directories.
Click to hide internal directories.