123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- syntax = "proto3";
- import "github.com/gogo/protobuf/gogoproto/gogo.proto";
- package live.xroom.v1;
- option go_package = "api";
- option (gogoproto.goproto_getters_all) = false;
- service Room {
-
- rpc getMultiple (RoomIDsReq) returns (RoomIDsInfosResp);
-
- rpc getMultipleByUids (UIDsReq) returns (UIDsInfosResp);
-
- rpc isAnchor (IsAnchorUIDsReq) returns (IsAnchorUIDsResp);
- }
- message RoomIDsReq {
-
- repeated int64 room_ids = 1 [(gogoproto.moretags) = 'form:"room_ids" validate:"required,gt=0,dive,gt=0"'];
-
- repeated string attrs = 2 [(gogoproto.moretags) = 'form:"attrs" validate:"required,gt=0,dive,gt=0"'];
- }
- message UIDsReq {
-
- repeated int64 uids = 1 [(gogoproto.moretags) = 'form:"uids" validate:"required,gt=0,dive,gt=0"'];
-
- repeated string attrs = 2 [(gogoproto.moretags) = 'form:"attrs" validate:"required,gt=0,dive,gt=0"'];
- }
- message IsAnchorUIDsReq {
-
- repeated int64 uids = 1 [(gogoproto.moretags) = 'form:"uids" validate:"required,gt=0,dive,gt=0"'];
- }
- message IsAnchorUIDsResp {
-
- map<int64, int64> list = 1 [(gogoproto.jsontag) = "list"];
- }
- message RoomIDsInfosResp {
-
- map<int64, Infos> list = 1 [(gogoproto.jsontag) = "list"];
- }
- message UIDsInfosResp {
-
- map<int64, Infos> list = 1 [(gogoproto.jsontag) = "list"];
- }
- message Infos {
-
- int64 room_id = 1 [(gogoproto.jsontag) = "room_id"];
-
- int64 uid = 2 [(gogoproto.jsontag) = "uid"];
-
- RoomStatusInfo status = 3 [(gogoproto.jsontag) = "status"];
-
- RoomShowInfo show = 4 [(gogoproto.jsontag) = "show"];
-
- RoomAreaInfo area = 5 [(gogoproto.jsontag) = "area"];
-
- RoomAnchorInfo anchor = 6 [(gogoproto.jsontag) = "anchor"];
- }
- message RoomStatusInfo {
-
- int64 live_status = 1 [(gogoproto.jsontag) = "live_status"];
-
- int64 live_screen_type = 2 [(gogoproto.jsontag) = "live_screen_type"];
-
- int64 live_mark = 3 [(gogoproto.jsontag) = "live_mark"];
-
- int64 lock_status = 4 [(gogoproto.jsontag) = "lock_status"];
-
- int64 lock_time = 5 [(gogoproto.jsontag) = "lock_time"];
-
- int64 hidden_status = 6 [(gogoproto.jsontag) = "hidden_status"];
-
- int64 hidden_time = 7 [(gogoproto.jsontag) = "hidden_time"];
-
- int64 live_type = 8 [(gogoproto.jsontag) = "live_type"];
- }
- message RoomShowInfo {
-
- int64 short_id = 1 [(gogoproto.jsontag) = "short_id"];
-
- string title = 2 [(gogoproto.jsontag) = "title"];
-
- string cover = 3 [(gogoproto.jsontag) = "cover"];
-
- string tags = 4 [(gogoproto.jsontag) = "tags"];
-
- string background = 5 [(gogoproto.jsontag) = "background"];
-
- string description = 6 [(gogoproto.jsontag) = "description"];
-
- string keyframe = 7 [(gogoproto.jsontag) = "keyframe"];
-
- int64 popularity_count = 8 [(gogoproto.jsontag) = "popularity_count"];
-
- repeated TagData tag_list = 9 [(gogoproto.jsontag) = "tag_list"];
-
- int64 live_start_time = 10 [(gogoproto.jsontag) = "live_start_time"];
- }
- message RoomAreaInfo {
-
- int64 area_id = 1 [(gogoproto.jsontag) = "area_id"];
-
- string area_name = 2 [(gogoproto.jsontag) = "area_name"];
-
- int64 parent_area_id = 3 [(gogoproto.jsontag) = "parent_area_id"];
-
- string parent_area_name = 4 [(gogoproto.jsontag) = "parent_area_name"];
- }
- message RoomAnchorInfo {
-
- int64 anchor_profile_type = 1 [(gogoproto.jsontag) = "anchor_profile_type"];
-
- AnchorLevel anchor_level = 2 [(gogoproto.jsontag) = "anchor_level"];
- }
- message TagData {
- int64 tag_id = 1 [(gogoproto.jsontag) = "tag_id"];
- int64 tag_sub_id = 2 [(gogoproto.jsontag) = "tag_sub_id"];
- int64 tag_value = 3 [(gogoproto.jsontag) = "tag_value"];
- string tag_ext = 4 [(gogoproto.jsontag) = "tag_ext"];
- }
- message AnchorLevel {
-
- int64 level = 1 [(gogoproto.jsontag) = "level"];
-
- int64 color = 2 [(gogoproto.jsontag) = "color"];
-
- int64 score = 3 [(gogoproto.jsontag) = "score"];
-
- int64 left = 4 [(gogoproto.jsontag) = "left"];
-
- int64 right = 5 [(gogoproto.jsontag) = "right"];
-
- int64 max_level = 6 [(gogoproto.jsontag) = "max_level"];
- }
|