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

38 lines
1.0 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 av.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service PayLive {
/** 付费直播鉴权
*
*/
rpc liveValidate (PayLiveLiveValidateReq) returns (PayLiveLiveValidateResp);
}
message PayLiveLiveValidateReq {
// 房间id
int64 room_id = 1 [(gogoproto.jsontag) = "room_id"];
// 来源pc表示PC端pc_link表示PC直播姬ios表示ios端ios_link表示ios_link端android安卓端android_link安卓link端ipadipadandroid_pad:安卓pad端live_mng表示live后台;vc_mng表示vc后台;"
string platform = 2 [(gogoproto.jsontag) = "platform"];
}
message PayLiveLiveValidateResp {
//
int64 code = 1 [(gogoproto.jsontag) = "code"];
//
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
// 1 允许 ; 0 不允许
int64 permission = 1 [(gogoproto.jsontag) = "permission"];
}
}