package com.jwipc.sys.service.impl;

import com.jwipc.sys.entity.Role;
import com.jwipc.sys.mapper.RoleMapper;
import com.jwipc.sys.service.IRoleService;
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 RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public List<Role> getUserRoles(Long id) {
        return this.baseMapper.getUserRoles(id);
    }
}
