UnionFans.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. syntax = "proto3";
  2. package activity.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service UnionFans {
  6. /** 获取友爱社礼包提示
  7. *
  8. */
  9. rpc getSendGift (UnionFansGetSendGiftReq) returns (UnionFansGetSendGiftResp);
  10. /** 查询用户特殊勋章样式
  11. *
  12. */
  13. rpc getSpecialMedal (UnionFansGetSpecialMedalReq) returns (UnionFansGetSpecialMedalResp);
  14. }
  15. message UnionFansGetSendGiftReq {
  16. //
  17. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  18. }
  19. message UnionFansGetSendGiftResp {
  20. // code
  21. int64 code = 1 [(gogoproto.jsontag) = "code"];
  22. // msg
  23. string msg = 2 [(gogoproto.jsontag) = "msg"];
  24. //
  25. repeated Data data = 3 [(gogoproto.jsontag) = "data"];
  26. message GiftList {
  27. //
  28. string gift_id = 1 [(gogoproto.jsontag) = "gift_id"];
  29. //
  30. int64 gift_num = 2 [(gogoproto.jsontag) = "gift_num"];
  31. }
  32. message Data {
  33. // 类型
  34. int64 type = 1 [(gogoproto.jsontag) = "type"];
  35. // 名称
  36. string giftTypeName = 2 [(gogoproto.jsontag) = "giftTypeName"];
  37. //
  38. repeated GiftList gift_list = 3 [(gogoproto.jsontag) = "gift_list"];
  39. }
  40. }
  41. message UnionFansGetSpecialMedalReq {
  42. // 用户uid
  43. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  44. // 主播uid
  45. int64 ruid = 2 [(gogoproto.jsontag) = "ruid"];
  46. }
  47. message UnionFansGetSpecialMedalResp {
  48. // code
  49. int64 code = 1 [(gogoproto.jsontag) = "code"];
  50. // msg
  51. string msg = 2 [(gogoproto.jsontag) = "msg"];
  52. //
  53. Data data = 3 [(gogoproto.jsontag) = "data"];
  54. message Data {
  55. // 特殊序章样式 为空或者为union
  56. string special_medal = 1 [(gogoproto.jsontag) = "special_medal"];
  57. }
  58. }