syntax = "proto3";//声明proto的版本 只能 是3,才支持 grpc //声明 包名 package proto; //服务管理 service WinnerPredictService { rpc Predict(PredictReq)returns(PredictResp){} } //请求参数 message PredictReq { string ProjectName =1 ; //项目名称 float Mount=2;//金额 string BidUnit=3;//招标单位 string Area = 4;//地域 string City =5;//城市 repeated string Goods = 6;//物品清单 string Winner =7;//中标人 repeated string WinnerOrder = 8;//中标候选人 } //返回结果 message PredictResp { repeated ResultEntiry Item=1; } // message ResultEntiry{ string EntName =1; // float Score=2; float Weight=3; }