thirdparty.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/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 WxPublicMsgKeyValue {
  51. string key = 1;
  52. string value = 2;
  53. }
  54. message WxPublicMsgSendRequest {
  55. string template_id = 1;
  56. string public_open_id = 2;
  57. repeated WxPublicMsgKeyValue content = 3;
  58. }
  59. message WxPublicMsgSendReply {
  60. }
  61. message TencentMsgSendRequest {
  62. repeated string datas = 1;
  63. int32 msg_type = 2;
  64. string phone = 3;
  65. }
  66. message TencentMsgSendReply {
  67. }