From 0e58908b11fa5fd5e2ac0343c15f6b9c32352700 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 9 Dec 2022 11:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/service/audit.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/customer/service/audit.go b/customer/service/audit.go index 8df40eb..66b68d1 100644 --- a/customer/service/audit.go +++ b/customer/service/audit.go @@ -136,9 +136,29 @@ type ReplyAuditInfo struct { Expand any `json:"expand"` } +// Info @Title 详情 +func (a *audit) Info(ctx context.Context, userServiceId uint) (reply ReplyAuditInfo, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "Info", userServiceId, &reply) + return +} + type ReplyProof struct { Name string `json:"name"` ChannelId uint `json:"channelId"` // 用户Id AppKey string `json:"appKey"` AppSecret string `json:"appSecret"` } + +// GetProof @Title 获取凭证 +func (a *audit) GetProof(ctx context.Context, userServiceId uint) (reply ReplyProof, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "GetProof", userServiceId, &reply) + return +}