package com.hzs.system.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.system.sys.SysUserTeam;
import com.hzs.common.domain.system.sys.ext.SysUserTeamExt;
import com.hzs.system.sys.mapper.SysUserTeamMapper;
import com.hzs.system.sys.service.ISysUserTeamService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户团队关联 服务实现类
 *
 * @author hzs
 * @since 2023-05-30
 */
@Service
public class SysUserTeamServiceImpl extends ServiceImpl<SysUserTeamMapper, SysUserTeam> implements ISysUserTeamService {

    @Override
    public List<SysUserTeamExt> queryListByUserId(Long userId) {
        return baseMapper.queryListByUserId(userId);
    }

    @Override
    public List<Long> queryTeamByUser(Long userId) {
        return baseMapper.queryTeamByUser(userId);
    }

}
