From a1fb48bd15d217e338aa246e3918363ee9ac3071 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 14:13:55 +0800 Subject: [PATCH 1/8] =?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/audit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/customer/service/audit.go b/customer/service/audit.go index f8c5196..54a06c7 100644 --- a/customer/service/audit.go +++ b/customer/service/audit.go @@ -30,6 +30,7 @@ type ArgsAuditLists struct { type AuditItem struct { Id uint `json:"id"` ServiceId uint `json:"serviceId"` + UserId uint `json:"userId"` UserName string `json:"userName"` ServiceName string `json:"serviceName"` ApplyUserId uint `json:"applyUserId"` From cfbf724f2f76220e4b5e0838ec295b5515363762 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 14:37:09 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/afterService.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/supply/afterService.go b/supply/afterService.go index fd07646..89838bf 100644 --- a/supply/afterService.go +++ b/supply/afterService.go @@ -291,3 +291,22 @@ func (a *afterService) FindByAfsId(ctx context.Context, afsId uint) (reply Reply err = xClient.Call(ctx, "FindByAfsId", afsId, &reply) return } + +type ReplySourceSkuIdsAfsInfos struct { + SourceId uint // 供应商Id + SourceName string // 供应商名称 + ChannelId uint // 客户Id + SkuId uint // 沙马skuId + HopeTypeName string // 期望售后类型 + TypeReasonName string // 售后原因 +} + +// FindBySourceSkuIdsAfsInfos @Title 根据sourceSkuId查询售后信息 +func (a *afterService) FindBySourceSkuIdsAfsInfos(ctx context.Context, sourceSkuIds []uint) (reply []ReplySourceSkuIdsAfsInfos, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "FindBySourceSkuIdsAfsInfos", sourceSkuIds, &reply) + return +} From d720e1332e1d1321ee7f82d421a2624dbc783d17 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 14:47:47 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/afterService.go | 1 + 1 file changed, 1 insertion(+) diff --git a/supply/afterService.go b/supply/afterService.go index 89838bf..6c4ab21 100644 --- a/supply/afterService.go +++ b/supply/afterService.go @@ -297,6 +297,7 @@ type ReplySourceSkuIdsAfsInfos struct { SourceName string // 供应商名称 ChannelId uint // 客户Id SkuId uint // 沙马skuId + SourceSkuId string // 供应商skuId HopeTypeName string // 期望售后类型 TypeReasonName string // 售后原因 } From bdf3d0365a2ee43682a70692e8fe9cb7d4dd4d26 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 14:56:21 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/afs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supplier/afs.go b/supplier/afs.go index 6472d3c..08ce9dd 100644 --- a/supplier/afs.go +++ b/supplier/afs.go @@ -109,7 +109,7 @@ type ReplyFindByAfsOrderInfo struct { Result string `json:"result"` // 处理结果 SkuName string `json:"skuName"` // 商品名称 SkuId uint `json:"skuId"` // 供应商编码 - Price decimal.Decimal `json:"price"` // 商品单价 + SupplyPrice decimal.Decimal `json:"price"` // 商品单价 Quantity uint `json:"quantity"` // 售后数量 UpcCode string `json:"upcCode"` // 商品条码 } From 68082647f01330950b44771fa0d46a6b654b4ae1 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 14:58:45 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/afterService.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/supply/afterService.go b/supply/afterService.go index 6c4ab21..74cc598 100644 --- a/supply/afterService.go +++ b/supply/afterService.go @@ -293,13 +293,14 @@ func (a *afterService) FindByAfsId(ctx context.Context, afsId uint) (reply Reply } type ReplySourceSkuIdsAfsInfos struct { - SourceId uint // 供应商Id - SourceName string // 供应商名称 - ChannelId uint // 客户Id - SkuId uint // 沙马skuId - SourceSkuId string // 供应商skuId - HopeTypeName string // 期望售后类型 - TypeReasonName string // 售后原因 + SourceId uint // 供应商Id + SourceName string // 供应商名称 + ChannelId uint // 客户Id + SkuId uint // 沙马skuId + SourceSkuId string // 供应商skuId + HopeTypeName string // 期望售后类型 + TypeReasonName string // 售后原因 + CustomerPrice decimal.Decimal // 销售价格 } // FindBySourceSkuIdsAfsInfos @Title 根据sourceSkuId查询售后信息 From e9ae0f860c87365a35f03468ce10a57075953afb Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 2 Feb 2023 15:53:40 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/brand.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supply/brand.go b/supply/brand.go index 8ac4215..975915a 100644 --- a/supply/brand.go +++ b/supply/brand.go @@ -73,6 +73,16 @@ func (b *brand) Add(ctx context.Context, args ArgsBrandAdd) (err error) { return xClient.Call(ctx, "Add", args, &reply) } +// Adds @Title 添加品牌 +func (b *brand) Adds(ctx context.Context, brandNames []string) (err error) { + reply := 0 + xClient, err := client.GetClient(b) + if err != nil { + return err + } + return xClient.Call(ctx, "Adds", brandNames, &reply) +} + type ArgsBrandEdit struct { BrandId uint // 品牌id Name string // 品牌名称 From 59be592ae6d427a456146b217c35683ba728f8b0 Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 3 Feb 2023 09:24:19 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/category.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/supply/category.go b/supply/category.go index 0795cfc..95b4416 100644 --- a/supply/category.go +++ b/supply/category.go @@ -40,6 +40,21 @@ func (c *category) Add(ctx context.Context, args ArgsCategoryAdd) (err error) { return xClient.Call(ctx, "Add", args, &reply) } +type ReplyCategoryAddError struct { + CategoryName string + ErrMsg string +} + +// Adds @Title 添加分类 +func (c *category) Adds(ctx context.Context, args []ArgsCategoryAdd) (reply []ReplyCategoryAddError, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "Adds", args, &reply) + return +} + type ArgsCategoryEdit struct { CategoryId uint // 分类id Name string // 分类名称 From 4f44445db762eca2f34d337b3dca16df1a20b80b Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 3 Feb 2023 10:36:25 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/category.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supply/category.go b/supply/category.go index 95b4416..7558947 100644 --- a/supply/category.go +++ b/supply/category.go @@ -41,8 +41,8 @@ func (c *category) Add(ctx context.Context, args ArgsCategoryAdd) (err error) { } type ReplyCategoryAddError struct { - CategoryName string - ErrMsg string + CategoryName string `json:"categoryName"` + ErrMsg string `json:"errMsg"` } // Adds @Title 添加分类