syntax = "proto3"; option go_package = "./inventory_order"; import "common.proto"; service inventoryOrderService { rpc CreateNewOrder(CreateNewOrderRequest) returns(CreateNewOrderResponse) {} rpc CreateOperationList(CreateOperationListRequest) returns(CreateOperationListResponse) {} rpc UpdateMaterialApplyStatus(UpdateMaterialApplyStatusRequest) returns(UpdateMaterialApplyStatusResponse) {} rpc GetWarehouseInfo(GetWarehouseInfoRequest) returns(GetWarehouseInfoResponse) {} rpc UpdateOutsourceOrder(UpdateOutsourceOrderRequest) returns(UpdateOutsourceOrderResponse) {} } message CreateNewOrderRequest{ int64 OrderNumber = 1;//订购数量 string Unit = 2;//单位 string ProductId = 3; string Customer = 4;//客户编码 } message CreateNewOrderResponse{ int32 Code = 1; string Msg = 2; string OrderId = 3; } //-------------------------------------------------------CreateOperationList------------------------------------ message OperationProduct { string ProductNumber = 1; int64 Amount = 2; } message OperationList { string SourceNumber = 1; repeated OperationProduct Products = 2; string SalesDetailsNumber = 3; } message CreateOperationListRequest{ int64 OperationType = 1;//1入库,2出库 string Source = 2; repeated OperationList List = 3; string WarehouseId = 4; OperationSource OperationSource = 5; } message OperationResponse{ string WorkOrderId = 1; string Number = 2; } message CreateOperationListResponse{ repeated OperationResponse List = 1; } //--------------------------------------------------UpdateMaterialApplyStatus----------------------------------- message UpdateMaterialApplyStatusRequest{ string Number = 1; int64 Status = 2; } message UpdateMaterialApplyStatusResponse{ } //-------------------------------------------------GetWarehouseInfo----------------------------------------- message GetWarehouseInfoRequest{ } message WarehouseInfo{ string Id = 1;//仓库id string Name = 2;//仓库名称 } message GetWarehouseInfoResponse{ repeated WarehouseInfo List = 1; } //-------------------------------------------------UpdateOutsourceOrder----------------------------------------- message UpdateOutsourceOrderRequest{ string OutsourceNumber = 1; repeated OperationProduct Products = 2; } message UpdateOutsourceOrderResponse{}