event

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WechatOrderEventName 自动创建工单
	WechatOrderEventName = "wechat_order_events"

	// WechatCallbackEventName 接收来自企业微信审批通过消息
	WechatCallbackEventName = "wechat_callback_events"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WechatApprovalCallbackConsumer

type WechatApprovalCallbackConsumer struct {
	// contains filtered or unexported fields
}

func NewWechatApprovalCallbackConsumer

func NewWechatApprovalCallbackConsumer(svc service.Service, q mq.MQ, p WechatOrderEventProducer, workApp *workwx.WorkwxApp) (*WechatApprovalCallbackConsumer, error)

func (*WechatApprovalCallbackConsumer) Consume

func (*WechatApprovalCallbackConsumer) Start

func (*WechatApprovalCallbackConsumer) Stop

type WechatOrderEventProducer

type WechatOrderEventProducer interface {
	Produce(ctx context.Context, evt *workwx.OAApprovalDetail) error
}

func NewWechatOrderEventProducer

func NewWechatOrderEventProducer(q mq.MQ) (WechatOrderEventProducer, error)

Jump to

Keyboard shortcuts

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