domain

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v1.9.0

type Channel string
const (
	ChannelFeishuCard Channel = "FEISHU_CARD" // 短信
	ChannelEmail      Channel = "EMAIL"       // 邮件
	ChannelInApp      Channel = "IN_APP"      // 站内信
)

func (Channel) String added in v1.9.0

func (c Channel) String() string

type NotificationConf added in v1.9.0

type NotificationConf struct {
	TemplateID     int64                  // 模版ID
	TemplateParams map[string]interface{} // 传递参数
	Channel        Channel                // 通知渠道
}

NotificationConf 消息通知配置

type Order

type Order struct {
	Id               int64
	TemplateId       int64
	WorkflowId       int64
	Data             map[string]interface{}
	Status           Status
	Provide          Provide
	CreateBy         string
	Process          Process
	Ctime            int64
	Wtime            int64
	NotificationConf NotificationConf // 为了引入告警转工单,引入外部消息通知
}

func (*Order) Validate added in v1.9.0

func (o *Order) Validate() error

type Process

type Process struct {
	InstanceId int
}

type Provide

type Provide uint8
const (
	// SYSTEM 本系统
	SYSTEM Provide = 1
	// WECHAT 企业微信
	WECHAT Provide = 2
	// ALERT 告警信息
	ALERT Provide = 3
)

func (Provide) IsAlert added in v1.9.0

func (s Provide) IsAlert() bool

func (Provide) IsValid added in v1.9.0

func (s Provide) IsValid() bool

func (Provide) ToUint8

func (s Provide) ToUint8() uint8

type Status

type Status uint8
const (
	// START 等待开始
	START Status = 1
	// PROCESS 流程运行中
	PROCESS Status = 2
	// END 完成
	END Status = 3
	// WITHDRAW 撤回
	WITHDRAW Status = 4
)

func (Status) ToInt added in v1.6.0

func (s Status) ToInt() int

func (Status) ToUint8

func (s Status) ToUint8() uint8

Jump to

Keyboard shortcuts

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