go-common/app/service/live/room_ex/api/liverpc/v1/Banner.proto

58 lines
1.6 KiB
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package room_ex.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Banner {
/** banner
*
*/
rpc getNewBanner (BannerGetNewBannerReq) returns (BannerGetNewBannerResp);
}
message BannerGetNewBannerReq {
// 业务id首页为0web主站hove为1
int64 platform = 1 [(gogoproto.jsontag) = "platform"];
// 第几帧0表示取全部
int64 position = 2 [(gogoproto.jsontag) = "position"];
// 平台
string userPlatform = 3 [(gogoproto.jsontag) = "userPlatform"];
// 设备
string userDevice = 4 [(gogoproto.jsontag) = "userDevice"];
// 版本号
int64 build = 5 [(gogoproto.jsontag) = "build"];
}
message BannerGetNewBannerResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
repeated NewBanner data = 3 [(gogoproto.jsontag) = "data"];
message NewBanner {
// banner id
string id = 1 [(gogoproto.jsontag) = "id"];
// 图片地址
string pic = 2 [(gogoproto.jsontag) = "pic"];
// 图片地址
string img = 3 [(gogoproto.jsontag) = "img"];
// 跳转链接
string link = 4 [(gogoproto.jsontag) = "link"];
// 标题
string title = 5 [(gogoproto.jsontag) = "title"];
// 第几帧
string position = 6 [(gogoproto.jsontag) = "position"];
// 权重
string sort_num = 7 [(gogoproto.jsontag) = "sort_num"];
// 注释
string remark = 8 [(gogoproto.jsontag) = "remark"];
}
}