AppIndex.liverpc.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/AppIndex.proto
  3. /*
  4. Package v1 is a generated liverpc stub package.
  5. This code was generated with go-common/app/tool/liverpc/protoc-gen-liverpc v0.1.
  6. It is generated from these files:
  7. v1/AppIndex.proto
  8. v1/Area.proto
  9. v1/Room.proto
  10. v1/RoomEx.proto
  11. v1/RoomMng.proto
  12. v1/RoomPendant.proto
  13. v1/RoomRecommend.proto
  14. v1/Skin.proto
  15. */
  16. package v1
  17. import context "context"
  18. import proto "github.com/golang/protobuf/proto"
  19. import "go-common/library/net/rpc/liverpc"
  20. var _ proto.Message // generate to suppress unused imports
  21. // Imports only used by utility functions:
  22. // ==================
  23. // AppIndex Interface
  24. // ==================
  25. type AppIndexRPCClient interface {
  26. // * 根据moduleId查common房间列表
  27. //
  28. GetListByIds(ctx context.Context, req *AppIndexGetListByIdsReq, opts ...liverpc.CallOption) (resp *AppIndexGetListByIdsResp, err error)
  29. }
  30. // ========================
  31. // AppIndex Live Rpc Client
  32. // ========================
  33. type appIndexRPCClient struct {
  34. client *liverpc.Client
  35. }
  36. // NewAppIndexRPCClient creates a client that implements the AppIndexRPCClient interface.
  37. func NewAppIndexRPCClient(client *liverpc.Client) AppIndexRPCClient {
  38. return &appIndexRPCClient{
  39. client: client,
  40. }
  41. }
  42. func (c *appIndexRPCClient) GetListByIds(ctx context.Context, in *AppIndexGetListByIdsReq, opts ...liverpc.CallOption) (*AppIndexGetListByIdsResp, error) {
  43. out := new(AppIndexGetListByIdsResp)
  44. err := doRPCRequest(ctx, c.client, 1, "AppIndex.getListByIds", in, out, opts)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return out, nil
  49. }
  50. // =====
  51. // Utils
  52. // =====
  53. func doRPCRequest(ctx context.Context, client *liverpc.Client, version int, method string, in, out proto.Message, opts []liverpc.CallOption) (err error) {
  54. err = client.Call(ctx, version, method, in, out, opts...)
  55. return
  56. }