thirdparty.proto 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household/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 WxPublicUnionIdRequest {
  27. string open_id = 1;
  28. }
  29. message WxPublicUnionIdReply {
  30. string union_id = 2;
  31. }
  32. message OpenImRegisterRequest {
  33. string user_id = 1;
  34. int32 platform = 2;
  35. string nick_name = 3;
  36. string face_url = 4;
  37. int32 gender = 5;
  38. }
  39. message OpenImRegisterReply {
  40. }
  41. message WxPublicMsgKeyValue {
  42. string key = 1;
  43. string value = 2;
  44. }
  45. message WxPublicMsgSendRequest {
  46. string template_id = 1;
  47. string public_open_id = 2;
  48. repeated WxPublicMsgKeyValue content = 3;
  49. }
  50. message WxPublicMsgSendReply {
  51. }