package com.hzs.system.sys.service.impl;

import com.hzs.common.domain.system.sys.SysRoleScope;
import com.hzs.system.sys.mapper.SysRoleScopeMapper;
import com.hzs.system.sys.service.ISysRoleScopeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 角色范围服务
 * @Author: jiang chao
 * @Time: 2023/1/7 15:33
 * @Classname: SysRoleScopeServiceImpl
 * @PackageName: com.hzs.system.sys.service.impl
 */
@Service
public class SysRoleScopeServiceImpl implements ISysRoleScopeService {

    @Autowired
    private SysRoleScopeMapper sysRoleScopeMapper;

    @Override
    public List<SysRoleScope> queryScopeByRole(Long roleId) {
        return sysRoleScopeMapper.queryScopeByRole(roleId);
    }

    @Override
    public List<Long> queryScopeByUser(Long userId) {
        return sysRoleScopeMapper.queryScopeByUser(userId);
    }

}
