|
|
@ -102,8 +102,18 @@ func (u *user) Disable(ctx context.Context, userId uint) error {
|
|
|
|
return client.GetClient(u).Call(ctx, "Disable", userId, &reply)
|
|
|
|
return client.GetClient(u).Call(ctx, "Disable", userId, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// SecretByAppKey @Title 通过appKey获取Secret
|
|
|
|
type ArgsUserServiceInfo struct {
|
|
|
|
func (u *user) SecretByAppKey(ctx context.Context, appKey string) (appSecret string, err error) {
|
|
|
|
ServiceId uint // 服务id
|
|
|
|
err = client.GetClient(u).Call(ctx, "Disable", appKey, &appSecret)
|
|
|
|
AppKey string // 渠道appKey
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReplyUserServiceInfo struct {
|
|
|
|
|
|
|
|
CustomerId uint `json:"customerId"`
|
|
|
|
|
|
|
|
AppSecret string `json:"appSecret"`
|
|
|
|
|
|
|
|
ExpirationAt int64 `json:"expirationAt"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ServiceInfo @Title 获取服务信息
|
|
|
|
|
|
|
|
func (u *user) ServiceInfo(ctx context.Context, args ArgsUserServiceInfo) (reply ReplyUserServiceInfo, err error) {
|
|
|
|
|
|
|
|
err = client.GetClient(u).Call(ctx, "ServiceInfo", args, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|