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