|
|
@ -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)
|
|
|
|
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "SubscribeCancel", args, &reply)
|
|
|
|
return
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|