RoomNews.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. syntax = "proto3";
  2. package room_ex.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service RoomNews {
  6. /** 批量获取直播公告
  7. *
  8. */
  9. rpc multiGet (RoomNewsMultiGetReq) returns (RoomNewsMultiGetResp);
  10. }
  11. message RoomNewsMultiGetReq {
  12. // 房间id组成的数组
  13. repeated int64 room_ids = 1 [(gogoproto.jsontag) = "room_ids"];
  14. // 是否需要转码1是0否,默认0
  15. int64 is_decoded = 2 [(gogoproto.jsontag) = "is_decoded"];
  16. }
  17. message RoomNewsMultiGetResp {
  18. // 返回code
  19. int64 code = 1 [(gogoproto.jsontag) = "code"];
  20. // 返回msg
  21. string msg = 2 [(gogoproto.jsontag) = "msg"];
  22. //
  23. repeated Data data = 3 [(gogoproto.jsontag) = "data"];
  24. message Data {
  25. // 房间id
  26. string roomid = 1 [(gogoproto.jsontag) = "roomid"];
  27. // 主播id
  28. string uid = 2 [(gogoproto.jsontag) = "uid"];
  29. // 公告内容
  30. string news_content = 3 [(gogoproto.jsontag) = "news_content"];
  31. // 更新时间
  32. string ctime = 4 [(gogoproto.jsontag) = "ctime"];
  33. }
  34. }