package cn.ezhizao.project.system.service.impl;

import java.util.List;
import javax.annotation.Resource;

import cn.ezhizao.project.system.domain.SysRoleMenuInit;
import cn.ezhizao.project.system.mapper.SysRoleMenuInitMapper;
import cn.ezhizao.project.system.service.ISysRoleMenuInitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * menuRoleService业务层处理
 *
 * @author ruoyi
 * @date 2024-01-10
 */
@Service
public class SysRoleMenuInitServiceImpl  extends ServiceImpl<SysRoleMenuInitMapper, SysRoleMenuInit> implements ISysRoleMenuInitService
{
    @Resource
    private SysRoleMenuInitMapper sysRoleMenuInitMapper;

    /**
     * 查询menuRole列表
     *
     * @param sysRoleMenuInit menuRole
     * @return menuRole
     */
    @Override
    public List<SysRoleMenuInit> getList(SysRoleMenuInit sysRoleMenuInit)
    {
        return sysRoleMenuInitMapper.getList(sysRoleMenuInit);
    }

    /**
     * 物理删除
     * @param sysRoleMenuInit
     * @return 删除结果
     */
    @Override
    public int physicalDelete(SysRoleMenuInit sysRoleMenuInit){ return sysRoleMenuInitMapper.physicalDelete(sysRoleMenuInit); }

    @Override
    public List<SysRoleMenuInit> selectMenuList(Long userId) {
        return sysRoleMenuInitMapper.selectMenuList(userId);
    }



}
