csconnectplayerlogic.go 664 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 CsConnectPlayerLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewCsConnectPlayerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CsConnectPlayerLogic {
  14. return &CsConnectPlayerLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. func (l *CsConnectPlayerLogic) CsConnectPlayer(in *pb.InnerCsConnectPlayerReq) (*pb.InnerCsConnectPlayerResp, error) {
  21. // todo: 建立玩家-客服的映射关系
  22. return &pb.InnerCsConnectPlayerResp{}, nil
  23. }