123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- syntax = "proto3";
- package room.v1;
- option go_package = "v1";
- service Room {
- /** 根据房间id获取房间信息
- *
- */
- rpc get_info_by_id (RoomGetInfoByIdReq) returns (RoomGetInfoByIdResp);
- /** 获取房间基本信息接口,前端/移动端房间页使用
- *
- */
- rpc get_info (RoomGetInfoReq) returns (RoomGetInfoResp);
- }
- message RoomGetInfoByIdReq {
- repeated int64 ids = 1;
- repeated string fields = 2;
- }
- message RoomGetInfoByIdResp {
- int64 code = 1;
- string msg = 2;
- map<string, RoomInfo> data = 3;
- message RoomInfo {
- int64 roomid = 1;
- string uname = 2;
- string cover = 3;
- int64 uid = 4;
- string live_time = 5;
- int64 round_status = 6;
- int64 on_flag = 7;
- string title = 8;
- string lock_status = 9;
- string hidden_status = 10;
- string user_cover = 11;
- int64 short_id = 12;
- int64 online = 13;
- int64 area = 14;
- int64 area_v2_id = 15;
- int64 area_v2_parent_id = 16;
- string area_v2_name = 17;
- string area_v2_parent_name = 18;
- int64 attentions = 19;
- }
- }
- message RoomGetInfoReq {
- int64 id = 1;
- string from = 2;
- }
- message RoomGetInfoResp {
- int64 code = 1;
- string msg = 2;
- Data data = 3;
- message PendantWithDesc {
- string name = 1;
- int64 position = 2;
- string value = 3;
- string desc = 4;
- }
- message Pendant {
- string name = 1;
- int64 position = 2;
- string value = 3;
- }
- message Pendants {
- PendantWithDesc frame = 1;
- PendantWithDesc badge = 2;
- Pendant mobile_frame = 3;
- Pendant mobile_badge = 4;
- }
- message Data {
- int64 uid = 1;
- int64 room_id = 2;
- int64 short_id = 3;
- string keyframe = 4;
- int64 online = 5;
- bool is_portrait = 6;
- string room_silent_type = 7;
- int64 room_silent_second = 8;
- int64 room_silent_level = 9;
- int64 live_status = 10;
- int64 area_id = 11;
- int64 parent_area_id = 12;
- string area_name = 13;
- string parent_area_name = 14;
- int64 old_area_id = 15;
- string background = 16;
- string title = 17;
- bool is_strict_room = 18;
- string user_cover = 19;
- string live_time = 20;
- string pendants = 21;
- string area_pendants = 22;
- string description = 23;
- string tags = 24;
- string verify = 25;
- repeated string hot_words = 26;
- int64 allow_change_area_time = 27;
- int64 allow_upload_cover_time = 28;
- Pendants new_pendants = 29;
- string up_session = 30;
- int64 pk_status = 31;
- }
- }
|