Hibok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.7 KiB

  1. syntax = "proto2";
  2. package yl_pb;
  3. //comid = 3
  4. enum InterpreterOrderState{
  5. Distributeing = 1; //派发中
  6. Underway = 2; //进行中
  7. Rescinded = 3; //已撤销
  8. Completed = 4; //已完成
  9. }
  10. //-------------------------------------------消息-------------------------
  11. //Msg=1 发布翻译管家帮助订单
  12. message IssueInterpreterOrderReq {
  13. optional uint32 TLanguage =1; //翻译语言
  14. optional int32 Scenes =2; //场景
  15. optional string Desc =3; //描述
  16. }
  17. //Msg=2 发布翻译管家帮助订单回应
  18. message IssueInterpreterOrderRes {
  19. optional int32 ErrorCode = 1; //详见错误码文档
  20. optional string OrderId =2; //订单号
  21. optional int32 WaitNum =3; //需要等待人数
  22. }
  23. //Msg= 3 接收订单消息请求
  24. message ReceivingInterpreterOrderReq {
  25. optional string OrderId =1; //订单号
  26. }
  27. //Msg= 4 接收订单消息回应
  28. message ReceivingInterpreterOrderRes {
  29. optional int32 ErrorCode = 1; //详见错误码文档
  30. }
  31. //Msg= 5 撤销订单消息
  32. message CancellationInterpreterOrderReq {
  33. optional string OrderId =1; //订单号
  34. }
  35. //Msg= 6 撤销订单消息回应
  36. message CancellationInterpreterOrderRes {
  37. optional int32 ErrorCode = 1; //详见错误码文档
  38. optional string OrderId = 2; //订单号
  39. }
  40. //Msg= 50 派送订单推送
  41. message DeliveryInterpreterOrderPush {
  42. optional string OrderId =1; //订单号
  43. optional int64 CreateTime = 2; //创建时间
  44. optional uint32 TLanguage =3; //翻译语言
  45. optional int32 Scenes =4; //场景
  46. optional string Desc =5; //描述
  47. }