SiteBlockMng.liverpc.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/SiteBlockMng.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. // SiteBlockMng Interface
  10. // ======================
  11. type SiteBlockMng interface {
  12. // * 是否封禁
  13. // room-ex调用
  14. IsBlockUser(context.Context, *SiteBlockMngIsBlockUserReq) (*SiteBlockMngIsBlockUserResp, error)
  15. }
  16. // ============================
  17. // SiteBlockMng Live Rpc Client
  18. // ============================
  19. type siteBlockMngRpcClient struct {
  20. client *liverpc.Client
  21. }
  22. // NewSiteBlockMngRpcClient creates a Rpc client that implements the SiteBlockMng interface.
  23. // It communicates using Rpc and can be configured with a custom HTTPClient.
  24. func NewSiteBlockMngRpcClient(client *liverpc.Client) SiteBlockMng {
  25. return &siteBlockMngRpcClient{
  26. client: client,
  27. }
  28. }
  29. func (c *siteBlockMngRpcClient) IsBlockUser(ctx context.Context, in *SiteBlockMngIsBlockUserReq) (*SiteBlockMngIsBlockUserResp, error) {
  30. out := new(SiteBlockMngIsBlockUserResp)
  31. err := doRpcRequest(ctx, c.client, 1, "SiteBlockMng.isBlockUser", in, out)
  32. if err != nil {
  33. return nil, err
  34. }
  35. return out, nil
  36. }