From aa1f4b912cd6a5410c5de357fcbbbdf91beefc41 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 11:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/service/service.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/customer/service/service.go b/customer/service/service.go index e771599..b72a1ab 100644 --- a/customer/service/service.go +++ b/customer/service/service.go @@ -18,17 +18,15 @@ type ReplyServiceLists struct { ServiceId uint `json:"serviceId"` ServiceName string `json:"serviceName"` EndTime int64 `json:"endTime"` - AppKey string `json:"appKey"` - AppSecret string `json:"appSecret"` AuditStatus uint `json:"auditStatus"` } -// Lists @Title 全部服务 -func (s *Service) Lists(ctx context.Context, args ArgsServiceLists) (reply []ReplyServiceLists, err error) { +// All @Title 全部服务 +func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceLists, err error) { xClient, err := client.GetClient(s) if err != nil { return } - err = xClient.Call(ctx, "Lists", args, &reply) + err = xClient.Call(ctx, "All", customerId, &reply) return }