From 02c1aa595d4ef61236f257efa4d7f8dbf51d85ab Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 18 Oct 2022 14:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mq=E7=94=A8=E6=88=B7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/mq.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/supply/channel/mq.go b/supply/channel/mq.go index 48e62d0..e5db283 100644 --- a/supply/channel/mq.go +++ b/supply/channel/mq.go @@ -42,3 +42,19 @@ func (m *mq) SubscribeCancel(ctx context.Context, channelId string, args ArgsMqS err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "SubscribeCancel", args, &reply) return } + +type ArgsMqUser struct { + AppKey string + AppSecret string +} + +// User @Title Mq用户 +func (m *mq) User(ctx context.Context, channelId string, args ArgsMqUser) (err error) { + reply := 0 + xClient, err := client.GetClient(m) + if err != nil { + return + } + err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "User", args, &reply) + return +}