thirdparty.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/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 WxAppletPrepayRequest {
  19. string order = 1;
  20. string product = 2;
  21. string open_id = 3;
  22. int64 amount = 4;
  23. string input_ip = 5;
  24. string mch_id = 6;
  25. }
  26. message WxAppletPrepayReply {
  27. string prepay = 1;
  28. string prepay_id = 2;
  29. }
  30. message OpenImTokenRequest {
  31. int32 platform = 1;
  32. string openim_id = 2;
  33. }
  34. message OpenImTokenReply {
  35. string token = 1;
  36. int64 expire_at = 2;
  37. }
  38. message OpenImUserInfoRequest {
  39. repeated string openim_ids = 1;
  40. int32 platform_id = 2;
  41. }
  42. message OpenImUserData {
  43. string nick_name = 1;
  44. string face_url = 2;
  45. int32 gender = 3;
  46. string openim_id = 4;
  47. }
  48. message OpenImUserInfoReply {
  49. repeated OpenImUserData list = 1;
  50. }