thirdparty.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-task/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 WxAppletLoginAuthRequest {
  19. string code = 1;
  20. }
  21. message WxAppletLoginAuthReply {
  22. string open_id = 1;
  23. string union_id = 2;
  24. string session_key = 3;
  25. }
  26. message WxAppletPrepayRequest {
  27. string order = 1;
  28. string product = 2;
  29. string open_id = 3;
  30. int64 amount = 4;
  31. string input_ip = 5;
  32. string mch_id = 6;
  33. bool native = 7;
  34. }
  35. message WxAppletPrepayReply {
  36. string prepay = 1;
  37. string prepay_id = 2;
  38. string code_url = 3;
  39. }
  40. message WxAppletQueryRequest {
  41. string order = 1;
  42. }
  43. message WxAppletQueryReply {
  44. string trade_state = 1;
  45. string trade_state_desc = 2;
  46. string transaction_id = 3;
  47. int64 pay_time = 4;
  48. int64 amount = 5;
  49. }
  50. message WxPublicUnionIdRequest {
  51. string open_id = 1;
  52. }
  53. message WxPublicUnionIdReply {
  54. string union_id = 2;
  55. }
  56. message WxPublicMsgKeyValue {
  57. string key = 1;
  58. string value = 2;
  59. }
  60. message WxPublicMsgSendRequest {
  61. string template_id = 1;
  62. string public_open_id = 2;
  63. repeated WxPublicMsgKeyValue content = 3;
  64. }
  65. message WxPublicMsgSendReply {
  66. }
  67. message WxPublicAddMiniRequest {
  68. string mini_url = 1;
  69. string mini_pagepath = 2;
  70. }
  71. message WxPublicAddMiniReply {
  72. }
  73. message TencentMsgSendRequest {
  74. repeated string datas = 1;
  75. int32 msg_type = 2;
  76. string phone = 3;
  77. }
  78. message TencentMsgSendReply {
  79. }