修改价格审核列表字段

finance
黄伟 2 years ago
parent 671323e466
commit 6d63cf4fd9

@ -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
}

@ -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
}

Loading…
Cancel
Save