innerserver.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: inner.proto
  3. package server
  4. import (
  5. "context"
  6. "ylink/core/inner/rpc/internal/logic"
  7. "ylink/core/inner/rpc/internal/svc"
  8. "ylink/core/inner/rpc/pb"
  9. )
  10. type InnerServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedInnerServer
  13. }
  14. func NewInnerServer(svcCtx *svc.ServiceContext) *InnerServer {
  15. return &InnerServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *InnerServer) PlayerFetchCsInfo(ctx context.Context, in *pb.InnerPlayerFetchCsInfoReq) (*pb.InnerPlayerFetchCsInfoResp, error) {
  20. l := logic.NewPlayerFetchCsInfoLogic(ctx, s.svcCtx)
  21. return l.PlayerFetchCsInfo(in)
  22. }
  23. func (s *InnerServer) PlayerDisconnect(ctx context.Context, in *pb.InnerPlayerDisconnectReq) (*pb.InnerPlayerDisconnectResp, error) {
  24. l := logic.NewPlayerDisconnectLogic(ctx, s.svcCtx)
  25. return l.PlayerDisconnect(in)
  26. }
  27. func (s *InnerServer) CsFetchPlayerQueue(ctx context.Context, in *pb.InnerCsFetchPlayerQueueReq) (*pb.InnerCsFetchPlayerQueueResp, error) {
  28. l := logic.NewCsFetchPlayerQueueLogic(ctx, s.svcCtx)
  29. return l.CsFetchPlayerQueue(in)
  30. }
  31. func (s *InnerServer) CsConnectPlayer(ctx context.Context, in *pb.InnerCsConnectPlayerReq) (*pb.InnerCsConnectPlayerResp, error) {
  32. l := logic.NewCsConnectPlayerLogic(ctx, s.svcCtx)
  33. return l.CsConnectPlayer(in)
  34. }
  35. func (s *InnerServer) NotifyUserOnline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
  36. l := logic.NewNotifyUserOnlineLogic(ctx, s.svcCtx)
  37. return l.NotifyUserOnline(in)
  38. }
  39. func (s *InnerServer) NotifyUserOffline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
  40. l := logic.NewNotifyUserOfflineLogic(ctx, s.svcCtx)
  41. return l.NotifyUserOffline(in)
  42. }