From 4e85c1718876ffa76c2047b94e9310bc0932f39d Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 27 Jul 2022 18:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96secret?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customer/user.go b/customer/user.go index 6d6c80b..df74d3f 100644 --- a/customer/user.go +++ b/customer/user.go @@ -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 +}