部署
This commit is contained in:
parent
b087fdd0b8
commit
7e533a757e
@ -181,6 +181,7 @@ type ReplyProductInfo struct {
|
|||||||
Packages []ProductPackageInfo `json:"packages"`
|
Packages []ProductPackageInfo `json:"packages"`
|
||||||
Customs ProductCustomsInfo `json:"customs"`
|
Customs ProductCustomsInfo `json:"customs"`
|
||||||
Quote ProductQuoteInfo `json:"quotes"`
|
Quote ProductQuoteInfo `json:"quotes"`
|
||||||
|
Children []ReplyProductInfo `json:"children"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProductPackageInfo struct {
|
type ProductPackageInfo struct {
|
||||||
@ -222,6 +223,16 @@ func (p *product) Info(ctx context.Context, saleProductId int64) (reply ReplyPro
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Infos @TITLE 产品详情
|
||||||
|
func (p *product) Infos(ctx context.Context, saleProductIds []int64) (reply []ReplyProductInfo, err error) {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
err = xClient.Call(ctx, "Infos", saleProductIds, &reply)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
type ArgsProductEdit struct {
|
type ArgsProductEdit struct {
|
||||||
SaleProductId int64 // 产品ID
|
SaleProductId int64 // 产品ID
|
||||||
ProductEdit
|
ProductEdit
|
||||||
|
@ -64,14 +64,19 @@ type SaleProductItem struct {
|
|||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
type ArgsSaleProductSearch struct {
|
||||||
|
ShipmentId int64 // 出舱单
|
||||||
|
SaleIds []int64 // 销售合同
|
||||||
|
PiSerial string // pi号
|
||||||
|
}
|
||||||
|
|
||||||
// All @TITLE 获取商品
|
// All @TITLE 获取商品
|
||||||
func (s *saleProduct) All(ctx context.Context, shipmentId int64) (reply []SaleProductItem, err error) {
|
func (s *saleProduct) All(ctx context.Context, search ArgsSaleProductSearch) (reply []SaleProductItem, err error) {
|
||||||
xClient, err := client.GetClient(s)
|
xClient, err := client.GetClient(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = xClient.Call(ctx, "All", shipmentId, &reply)
|
err = xClient.Call(ctx, "All", search, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user