package com.jwipc.sys.service.impl;

import com.jwipc.sys.entity.RoleRes;
import com.jwipc.sys.mapper.RoleResMapper;
import com.jwipc.sys.model.po.RoleResPO;
import com.jwipc.sys.service.IRoleResService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-27
 */
@Service
public class RoleResServiceImpl extends ServiceImpl<RoleResMapper, RoleRes> implements IRoleResService {

    @Override
    public void removeByRoleIdAndMenuType(Long roleId, Integer menuType) {
        this.baseMapper.removeByRoleIdAndMenuType(roleId,menuType);
    }

    @Override
    public List<RoleResPO> getByUser(Long userId) {
        return this.baseMapper.selectByUser(userId);
    }
}
