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