BaseInfo.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. syntax = "proto3";
  2. package relation.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service BaseInfo {
  6. /** uid获取关注列表和粉丝数
  7. *
  8. */
  9. rpc getFollowType (BaseInfoGetFollowTypeReq) returns (BaseInfoGetFollowTypeResp);
  10. /** uid获取最近30天送礼数据
  11. *
  12. */
  13. rpc getGiftInfo (BaseInfoGetGiftInfoReq) returns (BaseInfoGetGiftInfoResp);
  14. }
  15. message BaseInfoGetFollowTypeReq {
  16. }
  17. message BaseInfoGetFollowTypeResp {
  18. //
  19. int64 code = 1 [(gogoproto.jsontag) = "code"];
  20. //
  21. string msg = 2 [(gogoproto.jsontag) = "msg"];
  22. //
  23. map<int64, UidInfo> data = 3 [(gogoproto.jsontag) = "data"];
  24. message UidInfo {
  25. // 用户uid
  26. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  27. // 关注类型
  28. int64 attribute = 2 [(gogoproto.jsontag) = "attribute"];
  29. // 是否特别关注
  30. int64 special = 3 [(gogoproto.jsontag) = "special"];
  31. }
  32. }
  33. message BaseInfoGetGiftInfoReq {
  34. }
  35. message BaseInfoGetGiftInfoResp {
  36. //
  37. int64 code = 1 [(gogoproto.jsontag) = "code"];
  38. //
  39. string msg = 2 [(gogoproto.jsontag) = "msg"];
  40. //
  41. map<int64, UidInfo> data = 3 [(gogoproto.jsontag) = "data"];
  42. message UidInfo {
  43. // 用户uid
  44. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  45. // 金瓜子数
  46. int64 gold = 2 [(gogoproto.jsontag) = "gold"];
  47. }
  48. }