feat(shipment): 添加同步商品功能并优化删除出运产品功能- 在 ArgsSaleProductDelete 结构体中将 ShipmentSaleProductIds 的注释从"出运参评id"修改为"出运产品id"
- 新增 ArgsSaleProductSync 结构体用于同步商品功能 - 实现 Sync 方法以支持同步商品操作
This commit is contained in:
parent
eb4a4b122b
commit
76284f0550
@ -237,7 +237,7 @@ func (s *saleProduct) Edit(ctx context.Context, args ArgsSaleProductEdit) (err e
|
|||||||
|
|
||||||
type ArgsSaleProductDelete struct {
|
type ArgsSaleProductDelete struct {
|
||||||
ShipmentId int64 // 订舱单id
|
ShipmentId int64 // 订舱单id
|
||||||
ShipmentSaleProductIds []int64 // 出运参评id
|
ShipmentSaleProductIds []int64 // 出运产品id
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete @TITLE 删除出运产品
|
// Delete @TITLE 删除出运产品
|
||||||
@ -249,3 +249,18 @@ func (s *saleProduct) Delete(ctx context.Context, args ArgsSaleProductDelete) (e
|
|||||||
reply := 0
|
reply := 0
|
||||||
return xClient.Call(ctx, "Delete", args, &reply)
|
return xClient.Call(ctx, "Delete", args, &reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ArgsSaleProductSync struct {
|
||||||
|
ShipmentId int64 // 订舱单id
|
||||||
|
ShipmentSaleProductIds []int64 // 出运产品id
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sync @TITLE 同步商品
|
||||||
|
func (s *saleProduct) Sync(ctx context.Context, args ArgsSaleProductSync) (err error) {
|
||||||
|
xClient, err := client.GetClient(s)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
return xClient.Call(ctx, "Sync", args, &reply)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user