From d6091514f2ab3f8e650a14853804cf27438b3f26 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 15 十一月 2023 16:34:02 +0800
Subject: [PATCH] bug修改提交

---
 proto/purchase_wms.proto |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index d3c7d3e..1e8a838 100644
--- a/proto/purchase_wms.proto
+++ b/proto/purchase_wms.proto
@@ -5,8 +5,11 @@
 service PurchaseService {
   rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse);
   rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {}
+  rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {}
+  rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {}
 }
 
+//------------------------------------------PurchaseToWms--------------------------------
 
 message PurchaseProduct{
   string Id = 1;
@@ -24,7 +27,7 @@
   string message = 2;
 }
 
-//-------------------------------------------------------------------
+//------------------------------------------------UpdatePurchaseStatus-------------------------------------
 
 message UpdatePurchaseStatusRequest {
   string Number = 1;//閲囪喘缂栧彿
@@ -35,3 +38,35 @@
   string  Msg = 2;
 }
 
+//--------------------------------------------------GetSupplierListByProductId------------------------------
+
+message GetSupplierListByProductIdRequest {
+  string ProductId = 1;
+}
+
+message SupplierList {
+  int64 supplierId = 1;
+  string supplierName = 2;
+  float purchasePrice = 3;//閲囪喘浠锋牸
+}
+
+message GetSupplierListByProductIdResponse {
+  int32   Code = 1;
+  string  Msg = 2;
+  repeated SupplierList List = 3;
+}
+
+//-----------------------------------------------------CreatePurchaseByWms--------------------------------------
+
+message CreatePurchaseByWmsRequest {
+  int64 SupplierId = 1;
+  string ProductId = 2;
+  int64 Amount = 3;
+}
+
+message CreatePurchaseByWmsResponse {
+  int32   Code = 1;
+  string  Msg = 2;
+  string PurchaseNumber = 3;
+}
+

--
Gitblit v1.8.0