web

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByKeywordReq added in v1.9.3

type ByKeywordReq struct {
	Keyword string `json:"keyword"`
	Page
}

type CreateReq

type CreateReq struct {
	TemplateId   int64     `json:"template_id"`
	Name         string    `json:"name"`
	Icon         string    `json:"icon"`
	Owner        string    `json:"owner"`
	Desc         string    `json:"desc"`
	IsNotify     bool      `json:"is_notify"`
	NotifyMethod uint8     `json:"notify_method"`
	FlowData     LogicFlow `json:"flow_data"`
}

type DeleteReq

type DeleteReq struct {
	Id int64 `json:"id"`
}

type DeployReq

type DeployReq struct {
	Id int64
}

type Handler

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

func NewHandler

func NewHandler(svc service.Service, engineSvc engine.Service) *Handler

func (*Handler) ByKeyword added in v1.9.3

func (h *Handler) ByKeyword(ctx *gin.Context, req ByKeywordReq) (ginx.Result, error)

func (*Handler) Create

func (h *Handler) Create(ctx *gin.Context, req CreateReq) (ginx.Result, error)

func (*Handler) Delete

func (h *Handler) Delete(ctx *gin.Context, req DeleteReq) (ginx.Result, error)

func (*Handler) Deploy

func (h *Handler) Deploy(ctx *gin.Context, req DeployReq) (ginx.Result, error)

Deploy 发布到流程控制系统

func (*Handler) FindOrderGraph

func (h *Handler) FindOrderGraph(ctx *gin.Context, req OrderGraphReq) (ginx.Result, error)

func (*Handler) List

func (h *Handler) List(ctx *gin.Context, req ListReq) (ginx.Result, error)

func (*Handler) PrivateRoutes added in v1.3.0

func (h *Handler) PrivateRoutes(server *gin.Engine)

func (*Handler) Update

func (h *Handler) Update(ctx *gin.Context, req UpdateReq) (ginx.Result, error)

type ListReq

type ListReq struct {
	Page
}

type LogicFlow

type LogicFlow struct {
	Edges []map[string]interface{} `json:"edges"`
	Nodes []map[string]interface{} `json:"nodes"`
}

type OrderGraphReq

type OrderGraphReq struct {
	Id                int64 `json:"id"`
	Status            uint8 `json:"status"`
	ProcessInstanceId int   `json:"process_instance_id"`
}

type Page

type Page struct {
	Offset int64 `json:"offset,omitempty"`
	Limit  int64 `json:"limit,omitempty"`
}

type RetrieveOrderGraph

type RetrieveOrderGraph struct {
	EdgeIds  []string `json:"edge_ids"`
	Workflow Workflow `json:"workflow"`
}

type RetrieveWorkflows

type RetrieveWorkflows struct {
	Total     int64      `json:"total"`
	Workflows []Workflow `json:"workflows"`
}

type UpdateReq

type UpdateReq struct {
	Id           int64     `json:"id"`
	Name         string    `json:"name"`
	Desc         string    `json:"desc"`
	Owner        string    `json:"owner"`
	IsNotify     bool      `json:"is_notify"`
	NotifyMethod uint8     `json:"notify_method"`
	FlowData     LogicFlow `json:"flow_data"`
}

type Workflow

type Workflow struct {
	Id           int64     `json:"id"`
	TemplateId   int64     `json:"template_id"`
	Name         string    `json:"name"`
	Icon         string    `json:"icon"`
	Owner        string    `json:"owner"`
	Desc         string    `json:"desc"`
	IsNotify     bool      `json:"is_notify"`
	NotifyMethod uint8     `json:"notify_method"`
	FlowData     LogicFlow `json:"flow_data"`
}

Jump to

Keyboard shortcuts

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