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

58 lines
1.6 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 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"];
}
}