From 023212fe1bc85fe6f09608500dcca76a646897d2 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 09:42:02 +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 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/customer/service/service.go b/customer/service/service.go index 6a8ec8c..c93011f 100644 --- a/customer/service/service.go +++ b/customer/service/service.go @@ -1,5 +1,26 @@ package service +import ( + "context" + "git.oa00.com/supply-chain/service/client" +) + type Service struct { Audit audit } + +type ReplyServiceAll struct { + ServiceId uint `json:"serviceId"` + ServiceName string `json:"serviceName"` + EndTime int64 `json:"endTime"` +} + +// All @Title 全部服务 +func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceAll, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + err = xClient.Call(ctx, "All", customerId, &reply) + return +}