feat: add
This commit is contained in:
parent
a8cfb118fe
commit
baff6ef573
|
|
@ -63,24 +63,23 @@ type ZltxOrderAfterSaleSupplierRequest struct {
|
||||||
type ZltxOrderAfterSaleSupplierResponse struct {
|
type ZltxOrderAfterSaleSupplierResponse struct {
|
||||||
Code int `json:"code"`
|
Code int `json:"code"`
|
||||||
Msg string `json:"msg"`
|
Msg string `json:"msg"`
|
||||||
Data []CheckResult2 `json:"data"`
|
Data []ZltxOrderAfterSaleSupplierData `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CheckResult2 struct {
|
type ZltxOrderAfterSaleSupplierData struct {
|
||||||
OrderType int `json:"orderType"`
|
SerialNumber string `json:"serialNumber"`
|
||||||
OrderNumber string `json:"orderNumber"`
|
PlatformName string `json:"platformName"`
|
||||||
OrderAmount float64 `json:"orderAmount"`
|
|
||||||
OrderPrice float64 `json:"orderPrice"`
|
|
||||||
SignCompany int `json:"signCompany"`
|
SignCompany int `json:"signCompany"`
|
||||||
OrderQuantity int `json:"orderQuantity"`
|
PlatformProductName string `json:"platformProductName"`
|
||||||
ResellerID int `json:"resellerId"`
|
PlatformPrice float64 `json:"platformPrice"`
|
||||||
ResellerName string `json:"resellerName"`
|
TerminalAccount string `json:"terminalAccount"`
|
||||||
OurProductID int `json:"ourProductId"`
|
Status int `json:"status"`
|
||||||
OurProductTitle string `json:"ourProductTitle"`
|
PlatformProductID int `json:"platformProductId"`
|
||||||
Account []string `json:"account"`
|
PlatformID int `json:"platformId"`
|
||||||
Platforms struct {
|
SignCompanyName string `json:"signCompanyName"`
|
||||||
Num4 string `json:"4"`
|
ExecuteTime int `json:"executeTime"`
|
||||||
} `json:"platforms"`
|
AfterSalesReason string `json:"afterSalesReason"`
|
||||||
|
AfterSalesPrice float64 `json:"afterSalesPrice"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ZltxOrderAfterSaleSupplierTool) Execute(ctx context.Context, requireData *entitys.RequireData) error {
|
func (t *ZltxOrderAfterSaleSupplierTool) Execute(ctx context.Context, requireData *entitys.RequireData) error {
|
||||||
|
|
@ -121,42 +120,36 @@ func (t *ZltxOrderAfterSaleSupplierTool) checkZltxOrderAfterSaleSupplier(orderNu
|
||||||
resp := ZltxOrderAfterSaleSupplierResponse{
|
resp := ZltxOrderAfterSaleSupplierResponse{
|
||||||
Code: 0,
|
Code: 0,
|
||||||
Msg: "success",
|
Msg: "success",
|
||||||
Data: []CheckResult2{
|
Data: []ZltxOrderAfterSaleSupplierData{
|
||||||
{
|
{
|
||||||
OrderType: 1,
|
SerialNumber: "123456",
|
||||||
OrderNumber: orderNumber,
|
PlatformName: "测试平台",
|
||||||
OrderAmount: 100,
|
|
||||||
OrderPrice: 100,
|
|
||||||
SignCompany: 1,
|
SignCompany: 1,
|
||||||
OrderQuantity: 1,
|
PlatformProductName: "测试商品",
|
||||||
ResellerID: 1,
|
PlatformPrice: 100,
|
||||||
ResellerName: "测试",
|
TerminalAccount: "123456",
|
||||||
OurProductID: 1,
|
Status: 1,
|
||||||
OurProductTitle: "测试",
|
PlatformProductID: 1,
|
||||||
Account: []string{"123456"},
|
PlatformID: 1,
|
||||||
Platforms: struct {
|
SignCompanyName: "测试公司",
|
||||||
Num4 string `json:"4"`
|
ExecuteTime: 1694560000,
|
||||||
}{
|
AfterSalesReason: "测试售后",
|
||||||
Num4: "123456",
|
AfterSalesPrice: 50,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
OrderType: 2,
|
SerialNumber: "123457",
|
||||||
OrderNumber: orderNumber,
|
PlatformName: "测试平台2",
|
||||||
OrderAmount: 100,
|
|
||||||
OrderPrice: 100,
|
|
||||||
SignCompany: 1,
|
SignCompany: 1,
|
||||||
OrderQuantity: 1,
|
PlatformProductName: "测试商品2",
|
||||||
ResellerID: 1,
|
PlatformPrice: 100,
|
||||||
ResellerName: "测试",
|
TerminalAccount: "123456",
|
||||||
OurProductID: 1,
|
Status: 1,
|
||||||
OurProductTitle: "测试",
|
PlatformProductID: 1,
|
||||||
Account: []string{"123456"},
|
PlatformID: 1,
|
||||||
Platforms: struct {
|
SignCompanyName: "测试公司2",
|
||||||
Num4 string `json:"4"`
|
ExecuteTime: 1694570000,
|
||||||
}{
|
AfterSalesReason: "测试售后2",
|
||||||
Num4: "123456",
|
AfterSalesPrice: 30,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue