playerdisconnectlogic.go 663 B

1234567891011121314151617181920212223242526272829
  1. package logic
  2. import (
  3. "context"
  4. "ylink/core/inner/rpc/internal/svc"
  5. "ylink/core/inner/rpc/pb"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type PlayerDisconnectLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewPlayerDisconnectLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PlayerDisconnectLogic {
  14. return &PlayerDisconnectLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. func (l *PlayerDisconnectLogic) PlayerDisconnect(in *pb.InnerPlayerDisconnectReq) (*pb.InnerPlayerDisconnectResp, error) {
  21. // todo: 修改玩家在线状态
  22. return &pb.InnerPlayerDisconnectResp{}, nil
  23. }