This commit is contained in:
2024-08-28 08:57:55 +08:00
parent b087fdd0b8
commit 7e533a757e
2 changed files with 18 additions and 2 deletions

View File

@@ -64,14 +64,19 @@ type SaleProductItem struct {
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
}
type ArgsSaleProductSearch struct {
ShipmentId int64 // 出舱单
SaleIds []int64 // 销售合同
PiSerial string // pi号
}
// 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)
if err != nil {
return
}
err = xClient.Call(ctx, "All", shipmentId, &reply)
err = xClient.Call(ctx, "All", search, &reply)
return
}