domain

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel string
const (
	ChannelFeishuCard Channel = "FEISHU_CARD" // 飞书卡片
)

type NodeName

type NodeName string
const (
	Start      NodeName = "START"      // 开始节点
	Automation NodeName = "AUTOMATION" // 自动化节点
	User       NodeName = "USER"       // 用户审批节点
)

type Notification

type Notification struct {
	Receiver string   `json:"receiver"` // 接收者(手机/邮箱/用户ID)
	Template Template `json:"template"` // 发送模版
	Channel  Channel  `json:"channel"`  // 发送渠道
}

type StrategyInfo

type StrategyInfo struct {
	NodeName    NodeName          `json:"node_name"`    // 节点名称
	OrderInfo   order.Order       `json:"order_info"`   // 工单提交信息
	WfInfo      workflow.Workflow `json:"wf_info"`      // 流程信息
	InstanceId  int               `json:"instance_id"`  // 实例 id
	CurrentNode *model.Node       `json:"current_node"` // 流程当前节点
}

type Template

type Template struct {
	Name     string       `json:"name"`      // 模版名称
	Title    string       `json:"title"`     // 模版标题
	Fields   []card.Field `json:"fields"`    // 模版字段信息
	Values   []card.Value `json:"values"`    // 模版传递变量
	HideForm bool         `json:"hide_form"` // 隐藏
}

Jump to

Keyboard shortcuts

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