|
|
|
@ -101,3 +101,9 @@ func (u *user) Disable(ctx context.Context, userId uint) error {
|
|
|
|
|
reply := 0
|
|
|
|
|
return client.GetClient(u).Call(ctx, "Disable", userId, &reply)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SecretByAppKey @Title 通过appKey获取Secret
|
|
|
|
|
func (u *user) SecretByAppKey(ctx context.Context, appKey string) (appSecret string, err error) {
|
|
|
|
|
err = client.GetClient(u).Call(ctx, "Disable", appKey, &appSecret)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|