go-common/app/service/live/xuserex/api/grpc/v1/roomNotice.proto

59 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package live.xuserex.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
// 房间提示 相关服务
service RoomNotice {
// 是否弹出大航海购买提示
rpc buy_guard (RoomNoticeBuyGuardReq) returns (RoomNoticeBuyGuardResp);
// habse 任务是否结束
rpc is_task_finish (RoomNoticeIsTaskFinishReq) returns (RoomNoticeIsTaskFinishResp);
// 手动设置base 任务结束
rpc set_task_finish (RoomNoticeSetTaskFinishReq) returns (RoomNoticeSetTaskFinishResp);
}
message RoomNoticeBuyGuardReq {
// UID
int64 uid = 1 [(gogoproto.moretags) = 'form:"uid" validate:"required"'];
// 主播UID
int64 target_id = 2 [(gogoproto.moretags) = 'form:"target_id" validate:"required"'];
}
message RoomNoticeIsTaskFinishReq {
}
message RoomNoticeSetTaskFinishReq {
// 是否完成
int64 result = 1 [(gogoproto.moretags) = 'form:"result"'];
}
message RoomNoticeBuyGuardResp {
// 是否提示 1:弹出提示,0:不弹出
int64 should_notice = 1;
// 状态有效开始时间
int64 begin = 2;
// 状态有效结束时间
int64 end = 3;
// 当前的时间戳
int64 now = 7;
// 标题
string title = 4;
// 内容
string content = 5;
// 按钮
string button = 6;
}
message RoomNoticeIsTaskFinishResp {
// 是否完成
int64 result = 1;
}
message RoomNoticeSetTaskFinishResp {
// 是否完成
int64 result = 1;
}