From 24789a42dd9eebeca16feb0c4e9a64ae691b776e Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 07 三月 2024 14:51:42 +0800 Subject: [PATCH] srm获取仓库和操作记录信息 --- proto/purchase_wms.proto | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto index c344dfd..be80ba4 100644 --- a/proto/purchase_wms.proto +++ b/proto/purchase_wms.proto @@ -8,6 +8,9 @@ rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {} rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {} rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {} + rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {} + rpc SrmGetWarehouseInfo(SrmGetWarehouseInfoRequest) returns (SrmGetWarehouseInfoResponse) {} + rpc SrmGetOperationInfo(SrmGetOperationInfoRequest) returns (SrmGetOperationInfoResponse) {} } //------------------------------------------PurchaseToWms-------------------------------- @@ -92,5 +95,45 @@ repeated PurchaseInfo Infos = 1; } +//--------------------------------------------------ExistSupplier--------------------------------------- +message ExistSupplierRequest { + repeated string ProductId = 1; +} +message ExistSupplierResponse { + bool Exist = 1; +} + +//--------------------------------------------------SrmGetWarehouseInfo--------------------------------------- +message SrmGetWarehouseInfoRequest{} + +message SrmWarehouseInfo{ + string name = 1;//浠撳簱鍚� + string address = 2;//浠撳簱鍦板潃 + string principal = 3;//浠撳簱璐熻矗浜� +} + +message SrmGetWarehouseInfoResponse{ + repeated SrmWarehouseInfo info = 1; +} + +//--------------------------------------------------SrmGetOperationInfo--------------------------------------- +message SrmGetOperationInfoRequest{ + string number = 1; +} + +message SrmOperation{ + string number = 1;//鍏ュ簱鍗曞彿 + string warehouseName = 2;//浠撳簱鍚嶇О + string productName = 3;//浜у搧鍚嶇О + string productId = 4;//浜у搧缂栫爜 + int64 amount = 5;//鏁伴噺 + string overTime = 6;//鍏ュ簱鏃堕棿 + string consignee = 7;//鏀惰揣浜� + int64 status = 8;//鐘舵�� +} + +message SrmGetOperationInfoResponse{ + repeated SrmOperation operations = 1; +} -- Gitblit v1.8.0