From 3f7f6d9e9ccce7a5d3043b861ce1c5198c946e93 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 11:13:59 +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 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/customer/service/service.go b/customer/service/service.go index 13a8458..18b569d 100644 --- a/customer/service/service.go +++ b/customer/service/service.go @@ -9,7 +9,12 @@ type Service struct { Audit audit } -type ReplyServiceAll struct { +type ArgsServiceLists struct { + CustomerId uint + Status uint +} + +type ReplyServiceLists struct { ServiceId uint `json:"serviceId"` ServiceName string `json:"serviceName"` EndTime int64 `json:"endTime"` @@ -18,12 +23,12 @@ type ReplyServiceAll struct { AuditStatus uint `json:"auditStatus"` } -// All @Title 全部服务 -func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceAll, err error) { +// Lists @Title 全部服务 +func (s *Service) Lists(ctx context.Context, args ArgsAuditLists) (reply []ReplyServiceLists, err error) { xClient, err := client.GetClient(s) if err != nil { return } - err = xClient.Call(ctx, "All", customerId, &reply) + err = xClient.Call(ctx, "Lists", args, &reply) return }