RoomMng.liverpc.go 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/RoomMng.proto
  3. package v1
  4. import context "context"
  5. import proto "github.com/golang/protobuf/proto"
  6. import "go-common/library/net/rpc/liverpc"
  7. var _ proto.Message // generate to suppress unused imports
  8. // =================
  9. // RoomMng Interface
  10. // =================
  11. type RoomMngRPCClient interface {
  12. // * 开通直播间
  13. //
  14. CreateRoom(ctx context.Context, req *RoomMngCreateRoomReq, opts ...liverpc.CallOption) (resp *RoomMngCreateRoomResp, err error)
  15. // * 获取监控列表
  16. //
  17. GetSecondVerifyList(ctx context.Context, req *RoomMngGetSecondVerifyListReq, opts ...liverpc.CallOption) (resp *RoomMngGetSecondVerifyListResp, err error)
  18. // * 查询是否是黑名单,没有roomid参数时返回全部黑名单map
  19. //
  20. IsBlack(ctx context.Context, req *RoomMngIsBlackReq, opts ...liverpc.CallOption) (resp *RoomMngIsBlackResp, err error)
  21. // * 主播填写公告命中审核词生成审核记录写入db
  22. //
  23. SaveHistory(ctx context.Context, req *RoomMngSaveHistoryReq, opts ...liverpc.CallOption) (resp *RoomMngSaveHistoryResp, err error)
  24. // * 是否全网封禁
  25. //
  26. IsAllNetBanned(ctx context.Context, req *RoomMngIsAllNetBannedReq, opts ...liverpc.CallOption) (resp *RoomMngIsAllNetBannedResp, err error)
  27. }
  28. // =======================
  29. // RoomMng Live Rpc Client
  30. // =======================
  31. type roomMngRPCClient struct {
  32. client *liverpc.Client
  33. }
  34. // NewRoomMngRPCClient creates a client that implements the RoomMngRPCClient interface.
  35. func NewRoomMngRPCClient(client *liverpc.Client) RoomMngRPCClient {
  36. return &roomMngRPCClient{
  37. client: client,
  38. }
  39. }
  40. func (c *roomMngRPCClient) CreateRoom(ctx context.Context, in *RoomMngCreateRoomReq, opts ...liverpc.CallOption) (*RoomMngCreateRoomResp, error) {
  41. out := new(RoomMngCreateRoomResp)
  42. err := doRPCRequest(ctx, c.client, 1, "RoomMng.createRoom", in, out, opts)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return out, nil
  47. }
  48. func (c *roomMngRPCClient) GetSecondVerifyList(ctx context.Context, in *RoomMngGetSecondVerifyListReq, opts ...liverpc.CallOption) (*RoomMngGetSecondVerifyListResp, error) {
  49. out := new(RoomMngGetSecondVerifyListResp)
  50. err := doRPCRequest(ctx, c.client, 1, "RoomMng.getSecondVerifyList", in, out, opts)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return out, nil
  55. }
  56. func (c *roomMngRPCClient) IsBlack(ctx context.Context, in *RoomMngIsBlackReq, opts ...liverpc.CallOption) (*RoomMngIsBlackResp, error) {
  57. out := new(RoomMngIsBlackResp)
  58. err := doRPCRequest(ctx, c.client, 1, "RoomMng.isBlack", in, out, opts)
  59. if err != nil {
  60. return nil, err
  61. }
  62. return out, nil
  63. }
  64. func (c *roomMngRPCClient) SaveHistory(ctx context.Context, in *RoomMngSaveHistoryReq, opts ...liverpc.CallOption) (*RoomMngSaveHistoryResp, error) {
  65. out := new(RoomMngSaveHistoryResp)
  66. err := doRPCRequest(ctx, c.client, 1, "RoomMng.saveHistory", in, out, opts)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *roomMngRPCClient) IsAllNetBanned(ctx context.Context, in *RoomMngIsAllNetBannedReq, opts ...liverpc.CallOption) (*RoomMngIsAllNetBannedResp, error) {
  73. out := new(RoomMngIsAllNetBannedResp)
  74. err := doRPCRequest(ctx, c.client, 1, "RoomMng.isAllNetBanned", in, out, opts)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }