admin

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionLog

type ActionLog struct {
	LogID            string         `json:"logId"`
	Action           string         `json:"action"`
	OperatorID       string         `json:"operatorId"`
	OperatorName     string         `json:"operatorName"`
	OperatorDeptName *string        `json:"operatorDeptName,omitempty"`
	TransferToID     *string        `json:"transferToId,omitempty"`
	TransferToName   *string        `json:"transferToName,omitempty"`
	Opinion          *string        `json:"opinion,omitempty"`
	CreatedAt        timex.DateTime `json:"createdAt"`
}

ActionLog represents an action log entry in the admin view.

type FlowNodeInfo

type FlowNodeInfo struct {
	NodeID        string `json:"nodeId"`
	Key           string `json:"key"`
	Kind          string `json:"kind"`
	Name          string `json:"name"`
	ExecutionType string `json:"executionType"`
}

FlowNodeInfo represents a flow node in the admin instance detail view.

type Instance

type Instance struct {
	InstanceID      string          `json:"instanceId"`
	InstanceNo      string          `json:"instanceNo"`
	Title           string          `json:"title"`
	TenantID        string          `json:"tenantId"`
	FlowID          string          `json:"flowId"`
	FlowName        string          `json:"flowName"`
	ApplicantID     string          `json:"applicantId"`
	ApplicantName   string          `json:"applicantName"`
	Status          string          `json:"status"`
	CurrentNodeName *string         `json:"currentNodeName,omitempty"`
	CreatedAt       timex.DateTime  `json:"createdAt"`
	FinishedAt      *timex.DateTime `json:"finishedAt,omitempty"`
}

Instance represents an approval instance in the admin view.

type InstanceDetail

type InstanceDetail struct {
	Instance   InstanceDetailInfo `json:"instance"`
	Tasks      []TaskDetailInfo   `json:"tasks"`
	ActionLogs []ActionLog        `json:"actionLogs"`
	FlowNodes  []FlowNodeInfo     `json:"flowNodes"`
}

InstanceDetail represents the full admin detail view of an approval instance.

type InstanceDetailInfo

type InstanceDetailInfo struct {
	InstanceID       string          `json:"instanceId"`
	InstanceNo       string          `json:"instanceNo"`
	Title            string          `json:"title"`
	TenantID         string          `json:"tenantId"`
	FlowID           string          `json:"flowId"`
	FlowName         string          `json:"flowName"`
	FlowVersionID    string          `json:"flowVersionId"`
	ApplicantID      string          `json:"applicantId"`
	ApplicantName    string          `json:"applicantName"`
	Status           string          `json:"status"`
	CurrentNodeName  *string         `json:"currentNodeName,omitempty"`
	BusinessRecordID *string         `json:"businessRecordId,omitempty"`
	FormData         map[string]any  `json:"formData,omitempty"`
	CreatedAt        timex.DateTime  `json:"createdAt"`
	FinishedAt       *timex.DateTime `json:"finishedAt,omitempty"`
}

InstanceDetailInfo carries the instance portion of an admin detail view.

type Task

type Task struct {
	TaskID        string          `json:"taskId"`
	InstanceID    string          `json:"instanceId"`
	InstanceTitle string          `json:"instanceTitle"`
	FlowName      string          `json:"flowName"`
	NodeName      string          `json:"nodeName"`
	AssigneeID    string          `json:"assigneeId"`
	AssigneeName  string          `json:"assigneeName"`
	Status        string          `json:"status"`
	CreatedAt     timex.DateTime  `json:"createdAt"`
	Deadline      *timex.DateTime `json:"deadline,omitempty"`
	FinishedAt    *timex.DateTime `json:"finishedAt,omitempty"`
}

Task represents an approval task in the admin view.

type TaskDetailInfo

type TaskDetailInfo struct {
	TaskID        string          `json:"taskId"`
	NodeID        string          `json:"nodeId"`
	NodeName      string          `json:"nodeName"`
	AssigneeID    string          `json:"assigneeId"`
	AssigneeName  string          `json:"assigneeName"`
	DelegatorID   *string         `json:"delegatorId,omitempty"`
	DelegatorName *string         `json:"delegatorName,omitempty"`
	Status        string          `json:"status"`
	SortOrder     int             `json:"sortOrder"`
	Deadline      *timex.DateTime `json:"deadline,omitempty"`
	IsTimeout     bool            `json:"isTimeout"`
	CreatedAt     timex.DateTime  `json:"createdAt"`
	FinishedAt    *timex.DateTime `json:"finishedAt,omitempty"`
}

TaskDetailInfo represents a task entry within the admin instance detail view.

Jump to

Keyboard shortcuts

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