cmdserver.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: cmd.proto
  3. package server
  4. import (
  5. "context"
  6. "ylink/core/cmd/rpc/internal/logic"
  7. "ylink/core/cmd/rpc/internal/svc"
  8. "ylink/core/cmd/rpc/pb"
  9. )
  10. type CmdServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedCmdServer
  13. }
  14. func NewCmdServer(svcCtx *svc.ServiceContext) *CmdServer {
  15. return &CmdServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *CmdServer) PlayerFetchCsInfo(ctx context.Context, in *pb.PlayerFetchCsInfoReq) (*pb.PlayerFetchCsInfoResp, error) {
  20. l := logic.NewPlayerFetchCsInfoLogic(ctx, s.svcCtx)
  21. return l.PlayerFetchCsInfo(in)
  22. }
  23. func (s *CmdServer) PlayerFetchHistoryMsg(ctx context.Context, in *pb.PlayerFetchHistoryMsgReq) (*pb.PlayerFetchHistoryMsgResp, error) {
  24. l := logic.NewPlayerFetchHistoryMsgLogic(ctx, s.svcCtx)
  25. return l.PlayerFetchHistoryMsg(in)
  26. }
  27. func (s *CmdServer) PlayerSendMsg(ctx context.Context, in *pb.PlayerSendMsgReq) (*pb.PlayerSendMsgResp, error) {
  28. l := logic.NewPlayerSendMsgLogic(ctx, s.svcCtx)
  29. return l.PlayerSendMsg(in)
  30. }
  31. func (s *CmdServer) CsFetchPlayerQueue(ctx context.Context, in *pb.CsFetchPlayerQueueReq) (*pb.CsFetchPlayerQueueResp, error) {
  32. l := logic.NewCsFetchPlayerQueueLogic(ctx, s.svcCtx)
  33. return l.CsFetchPlayerQueue(in)
  34. }
  35. func (s *CmdServer) CsConnectPlayer(ctx context.Context, in *pb.CsConnectPlayerReq) (*pb.CsConnectPlayerResp, error) {
  36. l := logic.NewCsConnectPlayerLogic(ctx, s.svcCtx)
  37. return l.CsConnectPlayer(in)
  38. }
  39. func (s *CmdServer) CsFetchHistoryChat(ctx context.Context, in *pb.CsFetchHistoryChatReq) (*pb.CsFetchHistoryChatResp, error) {
  40. l := logic.NewCsFetchHistoryChatLogic(ctx, s.svcCtx)
  41. return l.CsFetchHistoryChat(in)
  42. }
  43. func (s *CmdServer) CsFetchHistoryMsg(ctx context.Context, in *pb.CsFetchHistoryMsgReq) (*pb.CsFetchHistoryMsgResp, error) {
  44. l := logic.NewCsFetchHistoryMsgLogic(ctx, s.svcCtx)
  45. return l.CsFetchHistoryMsg(in)
  46. }
  47. func (s *CmdServer) CsSendMsg(ctx context.Context, in *pb.CsSendMsgReq) (*pb.CsSendMsgResp, error) {
  48. l := logic.NewCsSendMsgLogic(ctx, s.svcCtx)
  49. return l.CsSendMsg(in)
  50. }