You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
935 B
29 lines
935 B
using System.Collections.Generic;
|
|
using Znyc.Cloudcar.Admin.Commons.Services;
|
|
using Znyc.Cloudcar.Admin.Security.Dtos;
|
|
using Znyc.Cloudcar.Admin.Security.Entitys;
|
|
using Znyc.Cloudcar.Admin.Security.IRepositories;
|
|
using Znyc.Cloudcar.Admin.Security.IServices;
|
|
|
|
namespace Znyc.Cloudcar.Admin.Security.Services
|
|
{
|
|
public class RoleDataService : BaseService<RoleDataEntity, RoleDataOutputDto, long>, IRoleDataService
|
|
{
|
|
private readonly IRoleDataRepository _repository;
|
|
|
|
public RoleDataService(IRoleDataRepository repository) : base(repository)
|
|
{
|
|
_repository = repository;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据角色返回授权访问部门数据
|
|
/// </summary>
|
|
/// <param name="roleIds"></param>
|
|
/// <returns></returns>
|
|
public List<string> GetListDeptByRole(string roleIds)
|
|
{
|
|
return _repository.GetListDeptByRole(roleIds);
|
|
}
|
|
}
|
|
}
|