innerserver.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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) CsFetchPlayerQueue(ctx context.Context, in *pb.InnerCsFetchPlayerQueueReq) (*pb.InnerCsFetchPlayerQueueResp, error) {
  24. l := logic.NewCsFetchPlayerQueueLogic(ctx, s.svcCtx)
  25. return l.CsFetchPlayerQueue(in)
  26. }
  27. func (s *InnerServer) CsConnectPlayer(ctx context.Context, in *pb.InnerCsConnectPlayerReq) (*pb.InnerCsConnectPlayerResp, error) {
  28. l := logic.NewCsConnectPlayerLogic(ctx, s.svcCtx)
  29. return l.CsConnectPlayer(in)
  30. }
  31. func (s *InnerServer) NotifyUserOnline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
  32. l := logic.NewNotifyUserOnlineLogic(ctx, s.svcCtx)
  33. return l.NotifyUserOnline(in)
  34. }
  35. func (s *InnerServer) NotifyUserOffline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
  36. l := logic.NewNotifyUserOfflineLogic(ctx, s.svcCtx)
  37. return l.NotifyUserOffline(in)
  38. }