1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: inner.proto
- package server
- import (
- "context"
- "ylink/core/inner/rpc/internal/logic"
- "ylink/core/inner/rpc/internal/svc"
- "ylink/core/inner/rpc/pb"
- )
- type InnerServer struct {
- svcCtx *svc.ServiceContext
- pb.UnimplementedInnerServer
- }
- func NewInnerServer(svcCtx *svc.ServiceContext) *InnerServer {
- return &InnerServer{
- svcCtx: svcCtx,
- }
- }
- func (s *InnerServer) PlayerFetchCsInfo(ctx context.Context, in *pb.InnerPlayerFetchCsInfoReq) (*pb.InnerPlayerFetchCsInfoResp, error) {
- l := logic.NewPlayerFetchCsInfoLogic(ctx, s.svcCtx)
- return l.PlayerFetchCsInfo(in)
- }
- func (s *InnerServer) PlayerDisconnect(ctx context.Context, in *pb.InnerPlayerDisconnectReq) (*pb.InnerPlayerDisconnectResp, error) {
- l := logic.NewPlayerDisconnectLogic(ctx, s.svcCtx)
- return l.PlayerDisconnect(in)
- }
- func (s *InnerServer) CsFetchPlayerQueue(ctx context.Context, in *pb.InnerCsFetchPlayerQueueReq) (*pb.InnerCsFetchPlayerQueueResp, error) {
- l := logic.NewCsFetchPlayerQueueLogic(ctx, s.svcCtx)
- return l.CsFetchPlayerQueue(in)
- }
- func (s *InnerServer) CsConnectPlayer(ctx context.Context, in *pb.InnerCsConnectPlayerReq) (*pb.InnerCsConnectPlayerResp, error) {
- l := logic.NewCsConnectPlayerLogic(ctx, s.svcCtx)
- return l.CsConnectPlayer(in)
- }
- func (s *InnerServer) NotifyUserOnline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
- l := logic.NewNotifyUserOnlineLogic(ctx, s.svcCtx)
- return l.NotifyUserOnline(in)
- }
- func (s *InnerServer) NotifyUserOffline(ctx context.Context, in *pb.NotifyUserStatusReq) (*pb.NotifyUserStatusResp, error) {
- l := logic.NewNotifyUserOfflineLogic(ctx, s.svcCtx)
- return l.NotifyUserOffline(in)
- }
|