web

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) 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