diff --git a/supply/sku.go b/supply/sku.go index e8b4df3..93d0fc8 100644 --- a/supply/sku.go +++ b/supply/sku.go @@ -181,3 +181,10 @@ func (s *sku) Stock(ctx context.Context, args ArgsSkuStock) (reply []ReplySkuSto err = client.GetClient(s).Call(ctx, "Stock", args, &reply) return } + +type ArgsSkuAdjustType struct { + SkuId uint + AdjustType uint + AdjustPrice decimal.Decimal + ApplyUserId uint +} diff --git a/supply/skuAudit.go b/supply/skuAudit.go index 9299925..4dc5ec5 100644 --- a/supply/skuAudit.go +++ b/supply/skuAudit.go @@ -2,9 +2,11 @@ package supply import ( "context" + "database/sql" "git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/lib/bean" "github.com/shopspring/decimal" + "time" ) type skuAudit struct { @@ -31,9 +33,14 @@ type SkuAndAuditItem struct { AdjustType uint `json:"adjustType"` AdjustPrice decimal.Decimal `json:"adjustPrice"` CustomerPrice decimal.Decimal `json:"customerPrice"` - ThirdCategoryId uint `json:"thirdCategoryId"` + Category string `json:"category"` BrandName string `json:"brandName"` SourceName string `json:"sourceName"` + AuditUserId uint `json:"auditUserId"` + AuditAt sql.NullTime `json:"auditAt"` + ImgUrl string `json:"imgUrl"` + Reason string `json:"reason"` + CreatedAt time.Time `json:"createdAt"` } type ReplySkuAuditLists struct { @@ -42,8 +49,8 @@ type ReplySkuAuditLists struct { } // Lists @Title 审核列表 -func (s *skuAudit) Lists(ctx context.Context, args ArgsSkuAuditLists) (result ReplySkuAuditLists, err error) { - err = client.GetClient(s).Call(ctx, "Lists", args, &result) +func (s *skuAudit) Lists(ctx context.Context, args ArgsSkuAuditLists) (reply ReplySkuAuditLists, err error) { + err = client.GetClient(s).Call(ctx, "Lists", args, &reply) return }