go-common/app/service/live/room_ex/api/liverpc/v1/RoomNews.proto
2019-04-22 18:49:16 +08:00

44 lines
1.1 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package room_ex.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service RoomNews {
/** 批量获取直播公告
*
*/
rpc multiGet (RoomNewsMultiGetReq) returns (RoomNewsMultiGetResp);
}
message RoomNewsMultiGetReq {
// 房间id组成的数组
repeated int64 room_ids = 1 [(gogoproto.jsontag) = "room_ids"];
// 是否需要转码1是0否默认0
int64 is_decoded = 2 [(gogoproto.jsontag) = "is_decoded"];
}
message RoomNewsMultiGetResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
repeated Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
// 房间id
string roomid = 1 [(gogoproto.jsontag) = "roomid"];
// 主播id
string uid = 2 [(gogoproto.jsontag) = "uid"];
// 公告内容
string news_content = 3 [(gogoproto.jsontag) = "news_content"];
// 更新时间
string ctime = 4 [(gogoproto.jsontag) = "ctime"];
}
}