thirdparty.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-thirdparty/pb/v1";
  6. message GetVcodeRequest{
  7. string phone_number = 1; // 电话号码
  8. }
  9. message GetVcodeReply{
  10. uint32 vcode = 1; // 验证码
  11. }
  12. message CheckVcodeRequest{
  13. string phone_number = 1; // 电话号码
  14. uint32 vcode = 2; // 验证码
  15. }
  16. message CheckVcodeReply{
  17. }
  18. message SendReserveRequest {
  19. string phone_number = 1;
  20. string services = 2;
  21. string times = 3;
  22. string shop = 4;
  23. string addr = 5;
  24. string service_phone = 6;
  25. string plate_no = 7;
  26. }
  27. message SendReserveReply {
  28. }
  29. message SendAlarmRequest{
  30. string phone_number = 1; // 电话号码
  31. // 邮件
  32. string email = 2;
  33. // 设备名(扬尘设备(扬尘0001))
  34. string device_name = 3;
  35. // 告警原因
  36. string alarm_reason = 4;
  37. // 告警时间
  38. string alarm_time = 5;
  39. }
  40. message SendAlarmReply{
  41. }
  42. // 发送通过认证短信
  43. message SendThroughVerifyRequest{
  44. // 公司名
  45. string company = 1;
  46. // 类型 1 供应商,2 企业
  47. int32 company_type = 2;
  48. string phone_number = 3;
  49. bool status = 4;
  50. string approve_time = 5;
  51. }
  52. message SendThroughVerifyReply{
  53. }
  54. message SendEmailRequest {
  55. string email = 1;
  56. string content = 2;
  57. }
  58. message SendEmailReply {
  59. }