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) 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) UpdateUserStatus(ctx context.Context, in *pb.UpdateUserStatusReq) (*pb.UpdateUserStatusResp, error) {
  36. l := logic.NewUpdateUserStatusLogic(ctx, s.svcCtx)
  37. return l.UpdateUserStatus(in)
  38. }