diff --git a/supplier/afs.go b/supplier/afs.go index 24df47e..6472d3c 100644 --- a/supplier/afs.go +++ b/supplier/afs.go @@ -32,6 +32,7 @@ type AfsItem struct { Id uint `json:"id"` AfsSn string `json:"afsSn"` OrderSubSn string `json:"orderSubSn"` + SkuId uint `json:"skuId"` SkuName string `json:"skuName"` Quantity uint `json:"quantity"` Status uint `json:"status"` @@ -96,6 +97,33 @@ func (a *afs) Detail(ctx context.Context, afsSn uint64) (reply ReplyAfsDetail, e return } +type ReplyFindByAfsOrderInfo struct { + Id uint `json:"id"` + CreatedAt int64 `json:"createdAt"` // 申请时间 + UpdatedAt int64 `json:"updatedAt"` // 更新时间 + AfsSn string `json:"afsSn"` // 售后单号 + OrderSubSn string `json:"orderSubSn"` // 订单号 + HandleStatus uint `json:"handleStatus"` // 处理结果 + Status uint `json:"status"` // 售后状态 + ApproveNotes string `json:"approveNotes"` // 处理描述 + Result string `json:"result"` // 处理结果 + SkuName string `json:"skuName"` // 商品名称 + SkuId uint `json:"skuId"` // 供应商编码 + Price decimal.Decimal `json:"price"` // 商品单价 + Quantity uint `json:"quantity"` // 售后数量 + UpcCode string `json:"upcCode"` // 商品条码 +} + +// FindByAfsOrderInfos @Title 根据售后单号批量查询信息 +func (a *afs) FindByAfsOrderInfos(ctx context.Context, afsSns []uint64) (reply []ReplyFindByAfsOrderInfo, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "FindByAfsOrderInfos", afsSns, &reply) + return +} + type ArgsAfsReject struct { AfsSn string `json:"afsSn"` Notes string `json:"notes"`