From 5083f183f6f2695198c02027640c0f98e067522e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 15 三月 2024 16:36:31 +0800 Subject: [PATCH] 获取出入库信息grpc接口 --- proto/product_inventory.proto | 46 +++++++++++++++++++++++++++++++++++----------- 1 files changed, 35 insertions(+), 11 deletions(-) diff --git a/proto/product_inventory.proto b/proto/product_inventory.proto index 5fccbbd..97640bb 100644 --- a/proto/product_inventory.proto +++ b/proto/product_inventory.proto @@ -6,6 +6,7 @@ rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {} rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {} rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {} + rpc GetOrderInputAndOutputInfo(GetOrderInputAndOutputInfoRequest) returns (GetOrderInputAndOutputInfoResponse) {} } message CreateOperationRequest{ @@ -34,9 +35,6 @@ message GetInventoryProductInfoRequest { string Number = 1;//鏄庣粏鍗曠紪鐮� - bool GroupByWarehouse = 2; //鏄惁鎸変粨搴撳垎缁� - bool IsOutput = 3; //鏌ュ嚭搴� - bool IsInput = 4; //鏌ュ叆搴� } message ProductInfo{ @@ -54,19 +52,16 @@ string AvailableNumber = 12;//鍙敤搴撳瓨 } +enum FinishStatus { + Ready = 0; + Finish = 1; +} + message GetInventoryProductInfoResponse{ int32 Code = 1; string Msg = 2; repeated ProductInfo ProductList = 3; - repeated WarehouseProducts WarehouseProductsList = 4; } - -message WarehouseProducts { - string WarehouseID = 1; - string WarehouseName = 2; - repeated ProductInfo ProductList = 3; -} - //------------------------------------------------------------ @@ -78,4 +73,33 @@ message UpdateSalesDetailStatusResponse{ int32 Code = 1; string Msg = 2; +} + + +//-------------------------------------------------- + +message InputAndOutputInfo{ + string Number = 1; + string Name = 2; + string OrderAmount = 3;//璁㈠崟鏁伴噺 + string Unit = 4; + string Invoice = 5;//鍙戣揣鍗� + string Carrier = 6;//鎵胯繍鍟� + string Waybill = 7;//杩愬崟鍙� + string SalePrice = 8;//閿�鍞崟浠� + string Valorem = 9;//浠风◣鍚堣 + string Warehouse = 10; + string Amount = 11; //鏁伴噺 + FinishStatus Status = 13; + string CreateTime = 14; +} +message GetOrderInputAndOutputInfoRequest { + string Number = 1;//鏄庣粏鍗曠紪鐮� +} + +message GetOrderInputAndOutputInfoResponse { + int32 Code = 1; + string Msg = 2; + repeated InputAndOutputInfo InputList = 3; + repeated InputAndOutputInfo OutputList = 4; } \ No newline at end of file -- Gitblit v1.8.0