liujiandao
2023-11-22 d6331f5d368ac49e850d113b83b199e79ec4ae9e
proto/purchase_wms.proto
@@ -7,6 +7,7 @@
  rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {}
  rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {}
  rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {}
  rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {}
}
//------------------------------------------PurchaseToWms--------------------------------
@@ -62,6 +63,7 @@
  int64 SupplierId = 1;
  string ProductId = 2;
  int64 Amount = 3;
  string Source = 4;
}
message CreatePurchaseByWmsResponse {
@@ -70,3 +72,23 @@
  string PurchaseNumber = 3;
}
//-------------------------------------------------------GetPurchaseInfo---------------------------------------
message GetPurchaseInfoRequest {
  repeated string PurchaseNumbers = 1;
}
message PurchaseInfo {
  string purchaseNumber = 1;
  string purchaseName = 2;
  string supplierName = 3;
  int64 amount = 4;
  int64 status = 5;
}
message GetPurchaseInfoResponse {
  repeated PurchaseInfo Infos = 1;
}