添加mq用户接口

finance
杨赟 2 years ago
parent 62d43523f5
commit 02c1aa595d

@ -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
}

Loading…
Cancel
Save