2019-04-22 02:59:20 +00:00

236 lines
6.8 KiB
Protocol Buffer
Raw Permalink 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 av.v0;
option go_package = "v0";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service PayLive {
/** 生成付费直播信息
*
*/
rpc add (PayLiveAddReq) returns (PayLiveAddResp);
/** 更新付费直播信息
*
*/
rpc update (PayLiveUpdateReq) returns (PayLiveUpdateResp);
/** 获取付费直播列表
*
*/
rpc getList (PayLiveGetListReq) returns (PayLiveGetListResp);
/** 关闭鉴权
*
*/
rpc close (PayLiveCloseReq) returns (PayLiveCloseResp);
/** 开启鉴权
*
*/
rpc open (PayLiveOpenReq) returns (PayLiveOpenResp);
}
message PayLiveAddReq {
// 平台
string platform = 1 [(gogoproto.jsontag) = "platform"];
// 商品名称
int64 room_id = 2 [(gogoproto.jsontag) = "room_id"];
// 商品名称
string title = 3 [(gogoproto.jsontag) = "title"];
// 鉴权状态1开0关
int64 status = 4 [(gogoproto.jsontag) = "status"];
// 开始时间
string start_time = 5 [(gogoproto.jsontag) = "start_time"];
// 结束时间
string end_time = 6 [(gogoproto.jsontag) = "end_time"];
// 正片结束时间
string live_end_time = 7 [(gogoproto.jsontag) = "live_end_time"];
// 正片保底图
string live_pic = 8 [(gogoproto.jsontag) = "live_pic"];
// 广告图
string ad_pic = 9 [(gogoproto.jsontag) = "ad_pic"];
// 购买链接
string goods_link = 10 [(gogoproto.jsontag) = "goods_link"];
// 门票id逗号分隔
string goods_id = 11 [(gogoproto.jsontag) = "goods_id"];
// 引导购票id
int64 buy_goods_id = 12 [(gogoproto.jsontag) = "buy_goods_id"];
// ip限制0不限制1仅限大陆2仅限港澳台3大陆+港澳台
int64 ip_limit = 13 [(gogoproto.jsontag) = "ip_limit"];
}
message PayLiveAddResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// 返回data
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
}
}
message PayLiveUpdateReq {
// id
int64 live_id = 1 [(gogoproto.jsontag) = "live_id"];
// 平台
string platform = 2 [(gogoproto.jsontag) = "platform"];
// 商品名称
int64 room_id = 3 [(gogoproto.jsontag) = "room_id"];
// 商品名称
string title = 4 [(gogoproto.jsontag) = "title"];
// 鉴权状态1开0关
int64 status = 5 [(gogoproto.jsontag) = "status"];
// 开始时间
string start_time = 6 [(gogoproto.jsontag) = "start_time"];
// 结束时间
string end_time = 7 [(gogoproto.jsontag) = "end_time"];
// 正片结束时间
string live_end_time = 8 [(gogoproto.jsontag) = "live_end_time"];
// 正片保底图
string live_pic = 9 [(gogoproto.jsontag) = "live_pic"];
// 广告图
string ad_pic = 10 [(gogoproto.jsontag) = "ad_pic"];
// 购买链接
string goods_link = 11 [(gogoproto.jsontag) = "goods_link"];
// 门票id逗号分隔
string goods_id = 12 [(gogoproto.jsontag) = "goods_id"];
// 引导购票id
int64 buy_goods_id = 13 [(gogoproto.jsontag) = "buy_goods_id"];
// ip限制0不限制1仅限大陆2仅限港澳台3大陆+港澳台
int64 ip_limit = 14 [(gogoproto.jsontag) = "ip_limit"];
}
message PayLiveUpdateResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// 返回data
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
}
}
message PayLiveGetListReq {
// 房间id
int64 room_id = 1 [(gogoproto.jsontag) = "room_id"];
// 商品名称
string title = 2 [(gogoproto.jsontag) = "title"];
// ip限制
int64 ip_limit = 3 [(gogoproto.jsontag) = "ip_limit"];
// 页号0开始
int64 page_num = 4 [(gogoproto.jsontag) = "page_num"];
// 每页个数
int64 page_size = 5 [(gogoproto.jsontag) = "page_size"];
}
message PayLiveGetListResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// 返回data
Data data = 3 [(gogoproto.jsontag) = "data"];
message PageInfo {
// 记录总数
int64 total_count = 1 [(gogoproto.jsontag) = "total_count"];
// 当前页号
int64 page_num = 2 [(gogoproto.jsontag) = "page_num"];
}
message GoodsInfo {
// 房间id
int64 room_id = 1 [(gogoproto.jsontag) = "room_id"];
// 付费直播id
int64 live_id = 2 [(gogoproto.jsontag) = "live_id"];
// 标题
string title = 3 [(gogoproto.jsontag) = "title"];
// 平台
string platform = 4 [(gogoproto.jsontag) = "platform"];
// 生效状态1生效0未生效
int64 pay_live_status = 5 [(gogoproto.jsontag) = "pay_live_status"];
// 开始购票时间
string start_time = 6 [(gogoproto.jsontag) = "start_time"];
// 结束购票时间
string end_time = 7 [(gogoproto.jsontag) = "end_time"];
// 正片结束
string live_end_time = 8 [(gogoproto.jsontag) = "live_end_time"];
// 正片保底图
string live_pic = 9 [(gogoproto.jsontag) = "live_pic"];
// 广告图
string ad_pic = 10 [(gogoproto.jsontag) = "ad_pic"];
// 购票链接
string goods_link = 11 [(gogoproto.jsontag) = "goods_link"];
// 购票id
string goods_id = 12 [(gogoproto.jsontag) = "goods_id"];
// 引导购票id
int64 buy_goods_id = 13 [(gogoproto.jsontag) = "buy_goods_id"];
// ip限制
int64 ip_limit = 14 [(gogoproto.jsontag) = "ip_limit"];
// 鉴权状态0关闭1开启
int64 status = 15 [(gogoproto.jsontag) = "status"];
}
message Data {
//
PageInfo page_info = 1 [(gogoproto.jsontag) = "page_info"];
//
repeated GoodsInfo goods_info = 2 [(gogoproto.jsontag) = "goods_info"];
}
}
message PayLiveCloseReq {
// 直播id
int64 live_id = 1 [(gogoproto.jsontag) = "live_id"];
}
message PayLiveCloseResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// 返回data
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
}
}
message PayLiveOpenReq {
// 直播id
int64 live_id = 1 [(gogoproto.jsontag) = "live_id"];
}
message PayLiveOpenResp {
// 返回code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// 返回msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// 返回data
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
}
}