From f64d02a1759906df7ea637913df1f4eec93811c7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 24 十一月 2023 14:57:58 +0800
Subject: [PATCH] 查询指定操作详情

---
 proto/purchase_wms.proto |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 58 insertions(+), 1 deletions(-)

diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index d3c7d3e..213f11b 100644
--- a/proto/purchase_wms.proto
+++ b/proto/purchase_wms.proto
@@ -5,8 +5,12 @@
 service PurchaseService {
   rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse);
   rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {}
+  rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {}
+  rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {}
+  rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {}
 }
 
+//------------------------------------------PurchaseToWms--------------------------------
 
 message PurchaseProduct{
   string Id = 1;
@@ -24,7 +28,7 @@
   string message = 2;
 }
 
-//-------------------------------------------------------------------
+//------------------------------------------------UpdatePurchaseStatus-------------------------------------
 
 message UpdatePurchaseStatusRequest {
   string Number = 1;//閲囪喘缂栧彿
@@ -35,3 +39,56 @@
   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;
+  string Source = 4;
+}
+
+message CreatePurchaseByWmsResponse {
+  int32   Code = 1;
+  string  Msg = 2;
+  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