mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
添加项目文件。
This commit is contained in:
46
CoreCms.Net.Services/System/SysRoleMenuServices.cs
Normal file
46
CoreCms.Net.Services/System/SysRoleMenuServices.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.IRepository;
|
||||
using CoreCms.Net.IRepository.UnitOfWork;
|
||||
using CoreCms.Net.IServices;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色菜单关联表 接口实现
|
||||
/// </summary>
|
||||
public class SysRoleMenuServices : BaseServices<SysRoleMenu>, ISysRoleMenuServices
|
||||
{
|
||||
private readonly ISysRoleMenuRepository _dal;
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
|
||||
public SysRoleMenuServices(IUnitOfWork unitOfWork, ISysRoleMenuRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 角色权限Map
|
||||
/// RoleModulePermission, Module, Role 三表联合
|
||||
/// 第四个类型 RoleModulePermission 是返回值
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<List<SysRoleMenu>> RoleModuleMaps()
|
||||
{
|
||||
return await _dal.RoleModuleMaps();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user