cmdserver.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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) PlayerDisconnect(ctx context.Context, in *pb.PlayerDisconnectReq) (*pb.PlayerDisconnectResp, error) {
  32. l := logic.NewPlayerDisconnectLogic(ctx, s.svcCtx)
  33. return l.PlayerDisconnect(in)
  34. }
  35. func (s *CmdServer) CsFetchPlayerQueue(ctx context.Context, in *pb.CsFetchPlayerQueueReq) (*pb.CsFetchPlayerQueueResp, error) {
  36. l := logic.NewCsFetchPlayerQueueLogic(ctx, s.svcCtx)
  37. return l.CsFetchPlayerQueue(in)
  38. }
  39. func (s *CmdServer) CsConnectPlayer(ctx context.Context, in *pb.CsConnectPlayerReq) (*pb.CsConnectPlayerResp, error) {
  40. l := logic.NewCsConnectPlayerLogic(ctx, s.svcCtx)
  41. return l.CsConnectPlayer(in)
  42. }
  43. func (s *CmdServer) CsFetchHistoryChat(ctx context.Context, in *pb.CsFetchHistoryChatReq) (*pb.CsFetchHistoryChatResp, error) {
  44. l := logic.NewCsFetchHistoryChatLogic(ctx, s.svcCtx)
  45. return l.CsFetchHistoryChat(in)
  46. }
  47. func (s *CmdServer) CsFetchHistoryMsg(ctx context.Context, in *pb.CsFetchHistoryMsgReq) (*pb.CsFetchHistoryMsgResp, error) {
  48. l := logic.NewCsFetchHistoryMsgLogic(ctx, s.svcCtx)
  49. return l.CsFetchHistoryMsg(in)
  50. }
  51. func (s *CmdServer) CsSendMsg(ctx context.Context, in *pb.CsSendMsgReq) (*pb.CsSendMsgResp, error) {
  52. l := logic.NewCsSendMsgLogic(ctx, s.svcCtx)
  53. return l.CsSendMsg(in)
  54. }