RoomPendant.liverpc.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/RoomPendant.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. // RoomPendant Interface
  10. // =====================
  11. type RoomPendantRPCClient interface {
  12. // * 根据roomids批量获取角标
  13. //
  14. GetPendantByIds(ctx context.Context, req *RoomPendantGetPendantByIdsReq, opts ...liverpc.CallOption) (resp *RoomPendantGetPendantByIdsResp, err error)
  15. }
  16. // ===========================
  17. // RoomPendant Live Rpc Client
  18. // ===========================
  19. type roomPendantRPCClient struct {
  20. client *liverpc.Client
  21. }
  22. // NewRoomPendantRPCClient creates a client that implements the RoomPendantRPCClient interface.
  23. func NewRoomPendantRPCClient(client *liverpc.Client) RoomPendantRPCClient {
  24. return &roomPendantRPCClient{
  25. client: client,
  26. }
  27. }
  28. func (c *roomPendantRPCClient) GetPendantByIds(ctx context.Context, in *RoomPendantGetPendantByIdsReq, opts ...liverpc.CallOption) (*RoomPendantGetPendantByIdsResp, error) {
  29. out := new(RoomPendantGetPendantByIdsResp)
  30. err := doRPCRequest(ctx, c.client, 1, "RoomPendant.getPendantByIds", in, out, opts)
  31. if err != nil {
  32. return nil, err
  33. }
  34. return out, nil
  35. }