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 (c *WechatApprovalCallbackConsumer) Consume(ctx context.Context) error
func (*WechatApprovalCallbackConsumer) Start ¶
func (c *WechatApprovalCallbackConsumer) Start(ctx context.Context)
type WechatOrderEventProducer ¶
type WechatOrderEventProducer interface {
Produce(ctx context.Context, evt *workwx.OAApprovalDetail) error
}
func NewWechatOrderEventProducer ¶
func NewWechatOrderEventProducer(q mq.MQ) (WechatOrderEventProducer, error)
Click to show internal directories.
Click to hide internal directories.