my

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 ActionLogInfo

type ActionLogInfo struct {
	Action       string         `json:"action"`
	OperatorName string         `json:"operatorName"`
	Opinion      *string        `json:"opinion,omitempty"`
	CreatedAt    timex.DateTime `json:"createdAt"`
}

ActionLogInfo holds an action log entry within a detail view.

type AvailableFlow

type AvailableFlow struct {
	FlowID       string  `json:"flowId"`
	FlowCode     string  `json:"flowCode"`
	FlowName     string  `json:"flowName"`
	FlowIcon     *string `json:"flowIcon,omitempty"`
	Description  *string `json:"description,omitempty"`
	CategoryID   string  `json:"categoryId"`
	CategoryName string  `json:"categoryName"`
}

AvailableFlow describes a flow the current user is allowed to initiate.

type CCRecord

type CCRecord struct {
	CCRecordID    string         `json:"ccRecordId"`
	InstanceID    string         `json:"instanceId"`
	InstanceTitle string         `json:"instanceTitle"`
	InstanceNo    string         `json:"instanceNo"`
	FlowName      string         `json:"flowName"`
	FlowIcon      *string        `json:"flowIcon,omitempty"`
	ApplicantName string         `json:"applicantName"`
	NodeName      *string        `json:"nodeName,omitempty"`
	IsRead        bool           `json:"isRead"`
	CreatedAt     timex.DateTime `json:"createdAt"`
}

CCRecord represents a CC notification addressed to the current user.

type CompletedTask

type CompletedTask struct {
	TaskID        string          `json:"taskId"`
	InstanceID    string          `json:"instanceId"`
	InstanceTitle string          `json:"instanceTitle"`
	InstanceNo    string          `json:"instanceNo"`
	FlowName      string          `json:"flowName"`
	FlowIcon      *string         `json:"flowIcon,omitempty"`
	ApplicantName string          `json:"applicantName"`
	NodeName      string          `json:"nodeName"`
	Status        string          `json:"status"`
	FinishedAt    *timex.DateTime `json:"finishedAt,omitempty"`
}

CompletedTask represents a task the current user has already processed.

type FlowNodeInfo

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

FlowNodeInfo holds a flow node entry within a detail view.

type InitiatedInstance

type InitiatedInstance struct {
	InstanceID      string          `json:"instanceId"`
	InstanceNo      string          `json:"instanceNo"`
	Title           string          `json:"title"`
	FlowName        string          `json:"flowName"`
	FlowIcon        *string         `json:"flowIcon,omitempty"`
	Status          string          `json:"status"`
	CurrentNodeName *string         `json:"currentNodeName,omitempty"`
	CreatedAt       timex.DateTime  `json:"createdAt"`
	FinishedAt      *timex.DateTime `json:"finishedAt,omitempty"`
}

InitiatedInstance represents an approval instance submitted by the current user.

type InstanceDetail

type InstanceDetail struct {
	Instance         InstanceInfo    `json:"instance"`
	Tasks            []TaskInfo      `json:"tasks"`
	ActionLogs       []ActionLogInfo `json:"actionLogs"`
	FlowNodes        []FlowNodeInfo  `json:"flowNodes"`
	AvailableActions []string        `json:"availableActions"`
}

InstanceDetail is the self-service detail view for an approval instance.

type InstanceInfo

type InstanceInfo struct {
	InstanceID       string          `json:"instanceId"`
	InstanceNo       string          `json:"instanceNo"`
	Title            string          `json:"title"`
	FlowName         string          `json:"flowName"`
	FlowIcon         *string         `json:"flowIcon,omitempty"`
	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"`
}

InstanceInfo holds the core instance information within a detail view.

type PendingCounts

type PendingCounts struct {
	PendingTaskCount int `json:"pendingTaskCount"`
	UnreadCCCount    int `json:"unreadCcCount"`
}

PendingCounts holds the counts of pending actions for the current user.

type PendingTask

type PendingTask struct {
	TaskID        string          `json:"taskId"`
	InstanceID    string          `json:"instanceId"`
	InstanceTitle string          `json:"instanceTitle"`
	InstanceNo    string          `json:"instanceNo"`
	FlowName      string          `json:"flowName"`
	FlowIcon      *string         `json:"flowIcon,omitempty"`
	ApplicantName string          `json:"applicantName"`
	NodeName      string          `json:"nodeName"`
	CreatedAt     timex.DateTime  `json:"createdAt"`
	Deadline      *timex.DateTime `json:"deadline,omitempty"`
	IsTimeout     bool            `json:"isTimeout"`
}

PendingTask represents a task that is awaiting the current user's action.

type TaskInfo

type TaskInfo struct {
	TaskID       string          `json:"taskId"`
	NodeName     string          `json:"nodeName"`
	AssigneeID   string          `json:"assigneeId"`
	AssigneeName string          `json:"assigneeName"`
	Status       string          `json:"status"`
	SortOrder    int             `json:"sortOrder"`
	CreatedAt    timex.DateTime  `json:"createdAt"`
	FinishedAt   *timex.DateTime `json:"finishedAt,omitempty"`
}

TaskInfo holds task information within a detail view.

Jump to

Keyboard shortcuts

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