RoomPendant.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. package room.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service RoomPendant {
  6. /** 根据roomids批量获取角标
  7. *
  8. */
  9. rpc getPendantByIds (RoomPendantGetPendantByIdsReq) returns (RoomPendantGetPendantByIdsResp);
  10. }
  11. message RoomPendantGetPendantByIdsReq {
  12. //
  13. repeated int64 ids = 1 [(gogoproto.jsontag) = "ids"];
  14. // 类型 "frame"房间页边框 , "badge"房间页角标 "index_badge"首页角标 "mobile_frame"移动端房间页边框 , "mobile_badge"移动端房间页角标 "mobile_index_badge"移动端首页角标
  15. string type = 2 [(gogoproto.jsontag) = "type"];
  16. // 位置0无1左上2右上3右下4左下 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  17. int64 position = 3 [(gogoproto.jsontag) = "position"];
  18. }
  19. message RoomPendantGetPendantByIdsResp {
  20. // code
  21. int64 code = 1 [(gogoproto.jsontag) = "code"];
  22. // msg
  23. string msg = 2 [(gogoproto.jsontag) = "msg"];
  24. //
  25. PendantInfo data = 3 [(gogoproto.jsontag) = "data"];
  26. message Result {
  27. //
  28. string type = 1 [(gogoproto.jsontag) = "type"];
  29. //
  30. int64 expire_time = 2 [(gogoproto.jsontag) = "expire_time"];
  31. //
  32. string name = 3 [(gogoproto.jsontag) = "name"];
  33. //
  34. string value = 4 [(gogoproto.jsontag) = "value"];
  35. //
  36. string bg_color = 5 [(gogoproto.jsontag) = "bg_color"];
  37. //
  38. string bg_pic = 6 [(gogoproto.jsontag) = "bg_pic"];
  39. }
  40. message PendantInfo {
  41. //
  42. map<int64, Result> result = 1 [(gogoproto.jsontag) = "result"];
  43. }
  44. }