添加获取secret接口

finance
杨赟 2 years ago
parent d3d514dad2
commit 4e85c17188

@ -101,3 +101,9 @@ func (u *user) Disable(ctx context.Context, userId uint) error {
reply := 0 reply := 0
return client.GetClient(u).Call(ctx, "Disable", userId, &reply) 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
}

Loading…
Cancel
Save