package com.backendsys.modules.system.service.impl;

import com.backendsys.modules.system.dao.SysUserRolePermissionDao;
import com.backendsys.modules.system.entity.SysUserRolePermission;
import com.backendsys.modules.system.service.SysUserRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysUserRolePermissionServiceImpl extends ServiceImpl<SysUserRolePermissionDao, SysUserRolePermission> implements SysUserRolePermissionService {

    @Autowired
    private SysUserRolePermissionDao sysUserRolePermissionDao;

    @Override
    public List<Map<String, Object>> getUserRolePermission(Long role_id) {
        return sysUserRolePermissionDao.selectUserRolePermission(role_id);
    }

}
