Documentation ¶
Index ¶
- type CreateOrderReq
- type DetailProcessInstIdReq
- type Handler
- func (h *Handler) CreateOrder(ctx *gin.Context, req CreateOrderReq) (ginx.Result, error)
- func (h *Handler) Detail(ctx *gin.Context, req DetailProcessInstIdReq) (ginx.Result, error)
- func (h *Handler) History(ctx *gin.Context, req HistoryReq) (ginx.Result, error)
- func (h *Handler) Pass(ctx *gin.Context, req PassOrderReq) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- func (h *Handler) Reject(ctx *gin.Context, req RejectOrderReq) (ginx.Result, error)
- func (h *Handler) Revoke(ctx *gin.Context, req RevokeOrderReq) (ginx.Result, error)
- func (h *Handler) StartUser(ctx *gin.Context, req StartUserReq) (ginx.Result, error)
- func (h *Handler) TaskRecord(ctx *gin.Context, req RecordTaskReq) (ginx.Result, error)
- func (h *Handler) TodoAll(ctx *gin.Context, req Todo) (ginx.Result, error)
- func (h *Handler) TodoByUser(ctx *gin.Context, req Todo) (ginx.Result, error)
- type HistoryReq
- type MyOrderReq
- type Order
- type PassOrderReq
- type RecordTaskReq
- type RejectOrderReq
- type RetrieveOrders
- type RetrieveTaskRecords
- type RevokeOrderReq
- type StartUser
- type StartUserReq
- type Steps
- type TaskRecord
- type Todo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOrderReq ¶
type DetailProcessInstIdReq ¶
type DetailProcessInstIdReq struct {
ProcessInstanceId int `json:"process_instance_id"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateOrder ¶
func (*Handler) PrivateRoutes ¶ added in v1.3.0
func (*Handler) TaskRecord ¶
TaskRecord 任务记录
type HistoryReq ¶
type MyOrderReq ¶
type MyOrderReq struct {
CreateBy string `json:"create_by"`
}
type Order ¶
type Order struct { Id int64 `json:"id"` TaskId int `json:"task_id"` // 任务ID ProcessInstanceId int `json:"process_instance_id"` // 流程实例ID Starter string `json:"starter"` // 提单人 TemplateName string `json:"template_name"` // 模版名称 Provide uint8 `json:"provide"` Status uint8 `json:"status"` CurrentStep string `json:"current_step"` ApprovedBy string `json:"approved_by"` // 处理人 ProcInstCreateTime *database.LocalTime `json:"proc_inst_create_time"` // 流程开始时间 Ctime string `json:"ctime"` // 创建工单时间 Wtime string `json:"wtime"` // 工单完成时间 TemplateId int64 `json:"template_id"` WorkflowId int64 `json:"workflow_id"` Data map[string]interface{} `json:"data"` }
type PassOrderReq ¶
type RecordTaskReq ¶
type RejectOrderReq ¶
type RetrieveOrders ¶
type RetrieveTaskRecords ¶
type RetrieveTaskRecords struct { TaskRecords []TaskRecord `json:"task_records"` Total int64 `json:"total"` }
type RevokeOrderReq ¶ added in v1.6.0
type StartUserReq ¶
type TaskRecord ¶
type TaskRecord struct { Nodename string `json:"nodename"` // 当前步骤 ApprovedBy string `json:"approved_by"` // 处理人 IsCosigned int `json:"is_cosigned"` // 是否会签 Status int `json:"status"` // 任务状态:0:初始 1:通过 2:驳回 Comment string `json:"comment"` // 评论 IsFinished int `json:"is_finished"` // 0:任务未完成 1:处理完成 FinishedTime *database.LocalTime `json:"finished_time"` // 处理任务时间 }
Click to show internal directories.
Click to hide internal directories.