PayLive.proto 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. syntax = "proto3";
  2. package av.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service PayLive {
  6. /** 付费直播鉴权
  7. *
  8. */
  9. rpc liveValidate (PayLiveLiveValidateReq) returns (PayLiveLiveValidateResp);
  10. }
  11. message PayLiveLiveValidateReq {
  12. // 房间id
  13. int64 room_id = 1 [(gogoproto.jsontag) = "room_id"];
  14. // 来源:pc:表示PC端;pc_link:表示PC直播姬;ios:表示ios端;ios_link:表示ios_link端;android:安卓端;android_link:安卓link端;ipad:ipad;android_pad:安卓pad端;live_mng:表示live后台;vc_mng:表示vc后台;"
  15. string platform = 2 [(gogoproto.jsontag) = "platform"];
  16. }
  17. message PayLiveLiveValidateResp {
  18. //
  19. int64 code = 1 [(gogoproto.jsontag) = "code"];
  20. //
  21. string msg = 2 [(gogoproto.jsontag) = "msg"];
  22. //
  23. Data data = 3 [(gogoproto.jsontag) = "data"];
  24. message Data {
  25. // 1 允许 ; 0 不允许
  26. int64 permission = 1 [(gogoproto.jsontag) = "permission"];
  27. }
  28. }