winnerpredict.proto 695 B

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