From dcf9d1324c4ecc23bc0b120ee9af9f0f74cde034 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 08 一月 2024 19:04:50 +0800
Subject: [PATCH] swagger提交

---
 proto/purchase_wms.proto |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index 1e8a838..c344dfd 100644
--- a/proto/purchase_wms.proto
+++ b/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--------------------------------
@@ -19,12 +20,14 @@
 message PurchaseToWmsRequest {
   string Number = 1; //閲囪喘缂栧彿
   string SupplierName = 2; //渚涘簲鍟�
-  repeated PurchaseProduct Product = 3;
+  string Source = 3;//鏉ユ簮
+  repeated PurchaseProduct Product = 4;
 }
 
 message PurchaseToWmsResponse {
   int32 code = 1;
   string message = 2;
+  string Warehouse = 3;
 }
 
 //------------------------------------------------UpdatePurchaseStatus-------------------------------------
@@ -62,6 +65,7 @@
   int64 SupplierId = 1;
   string ProductId = 2;
   int64 Amount = 3;
+  string Source = 4;
 }
 
 message CreatePurchaseByWmsResponse {
@@ -70,3 +74,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;
+}
+
+
+

--
Gitblit v1.8.0