Skin.liverpc.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/Skin.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. // Skin Interface
  10. // ==============
  11. type SkinRPCClient interface {
  12. // * 房间当前皮肤
  13. //
  14. Current(ctx context.Context, req *SkinCurrentReq, opts ...liverpc.CallOption) (resp *SkinCurrentResp, err error)
  15. }
  16. // ====================
  17. // Skin Live Rpc Client
  18. // ====================
  19. type skinRPCClient struct {
  20. client *liverpc.Client
  21. }
  22. // NewSkinRPCClient creates a client that implements the SkinRPCClient interface.
  23. func NewSkinRPCClient(client *liverpc.Client) SkinRPCClient {
  24. return &skinRPCClient{
  25. client: client,
  26. }
  27. }
  28. func (c *skinRPCClient) Current(ctx context.Context, in *SkinCurrentReq, opts ...liverpc.CallOption) (*SkinCurrentResp, error) {
  29. out := new(SkinCurrentResp)
  30. err := doRPCRequest(ctx, c.client, 1, "Skin.current", in, out, opts)
  31. if err != nil {
  32. return nil, err
  33. }
  34. return out, nil
  35. }