修改价格审核列表字段

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) err = client.GetClient(s).Call(ctx, "Stock", args, &reply)
return return
} }
type ArgsSkuAdjustType struct {
SkuId uint
AdjustType uint
AdjustPrice decimal.Decimal
ApplyUserId uint
}

@ -2,9 +2,11 @@ package supply
import ( import (
"context" "context"
"database/sql"
"git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/client"
"git.oa00.com/supply-chain/service/lib/bean" "git.oa00.com/supply-chain/service/lib/bean"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"
"time"
) )
type skuAudit struct { type skuAudit struct {
@ -31,9 +33,14 @@ type SkuAndAuditItem struct {
AdjustType uint `json:"adjustType"` AdjustType uint `json:"adjustType"`
AdjustPrice decimal.Decimal `json:"adjustPrice"` AdjustPrice decimal.Decimal `json:"adjustPrice"`
CustomerPrice decimal.Decimal `json:"customerPrice"` CustomerPrice decimal.Decimal `json:"customerPrice"`
ThirdCategoryId uint `json:"thirdCategoryId"` Category string `json:"category"`
BrandName string `json:"brandName"` BrandName string `json:"brandName"`
SourceName string `json:"sourceName"` 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 { type ReplySkuAuditLists struct {
@ -42,8 +49,8 @@ type ReplySkuAuditLists struct {
} }
// Lists @Title 审核列表 // Lists @Title 审核列表
func (s *skuAudit) Lists(ctx context.Context, args ArgsSkuAuditLists) (result ReplySkuAuditLists, err error) { func (s *skuAudit) Lists(ctx context.Context, args ArgsSkuAuditLists) (reply ReplySkuAuditLists, err error) {
err = client.GetClient(s).Call(ctx, "Lists", args, &result) err = client.GetClient(s).Call(ctx, "Lists", args, &reply)
return return
} }

Loading…
Cancel
Save