package cn.wisenergy.chnmuseum.party.service; import cn.wisenergy.chnmuseum.party.mapper.RoleMapper; import cn.wisenergy.chnmuseum.party.model.Role; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource; import java.util.List;
@Service public class RoleService extends ServiceImpl<RoleMapper, Role> {
@Resource private RoleMapper roleMapper; public List<Role> selectRoleByUserId(String id){ List<Role> roles = roleMapper.selectRole(id); return roles; }
}