From 0eadf431dc094de95a98a5b6996d1bf33c093bde Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 15 Nov 2022 13:30:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/service/audit.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/customer/service/audit.go b/customer/service/audit.go index 24333c9..13032f2 100644 --- a/customer/service/audit.go +++ b/customer/service/audit.go @@ -44,3 +44,31 @@ func (a *audit) Lists(ctx context.Context, args ArgsAuditLists) (reply ReplyAudi err = xClient.Call(ctx, "Lists", args, &reply) return } + +type ArgsHistory struct { + Page bean.Page + CustomerId uint +} + +type ReplyHistoryLists struct { + Lists []HistoryItem `json:"lists"` + Total int64 `json:"total"` +} + +type HistoryItem struct { + ServiceId uint `json:"serviceId"` + Remark string `json:"remark"` + ExpirationAt int64 `json:"expirationAt"` + ApplyAt int64 `json:"applyAt"` + AuditStatus uint `json:"auditStatus"` +} + +// History @Title 服务申请记录 +func (a *audit) History(ctx context.Context, args ArgsHistory) (reply ReplyHistoryLists, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "History", args, &reply) + return +} From f27f2ad0e72753864d5c6f1fbcc49eeaabfed6ac Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 15 Nov 2022 13:48:29 +0800 Subject: [PATCH 2/3] =?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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/customer/service/service.go b/customer/service/service.go index 6a5b359..25054da 100644 --- a/customer/service/service.go +++ b/customer/service/service.go @@ -35,3 +35,19 @@ func (s *service) All(ctx context.Context, customerId uint) (reply []ReplyServic err = xClient.Call(ctx, "All", customerId, &reply) return } + +type ReplyServiceSelect struct { + Id uint `json:"id"` + Name string `json:"name"` +} + +// Select @Title 服务筛选 +func (s *service) Select(ctx context.Context) (reply []ReplyServiceSelect, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + args := 0 + err = xClient.Call(ctx, "Select", args, &reply) + return +} From e872079c21e259c74a6bdfa05427b2c49290dfc1 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 16 Nov 2022 10:59:27 +0800 Subject: [PATCH 3/3] =?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/sku/sale.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/customer/sku/sale.go b/customer/sku/sale.go index 8e074c7..5ff9c86 100644 --- a/customer/sku/sale.go +++ b/customer/sku/sale.go @@ -90,3 +90,13 @@ func (s *sale) DelAll(ctx context.Context) error { reply := 0 return xClient.Call(ctx, "DelAll", args, &reply) } + +// FindBySkuIds @Title 根据SkuId查询数据 +func (s *sale) FindBySkuIds(ctx context.Context, skuIds []uint) (reply []SaleSkuItem, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return nil, err + } + err = xClient.Call(ctx, "FindBySkuIds", skuIds, &reply) + return +}