using ce.autofac.extension;
using learun.util;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace learun.iapplication
{
///
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.09.10
/// 描 述:功能模块
///
public interface ModuleIBLL : IBLL
{
#region 功能模块
///
/// 功能列表
///
///
Task> GetModuleList();
///
/// 功能列表
///
///
Task GetModuleByUrl(string url);
///
/// 功能列表(code)
///
/// 编码
///
Task GetEntityByCode(string code);
///
/// 获取功能列表的树形数据
///
///
Task> GetModuleTree();
///
/// 获取功能列表的树形数据(带勾选框)
///
///
Task> GetModuleCheckTree();
///
/// 获取功能列表的树形数据(只有展开项)
///
///
Task> GetExpendModuleTree();
///
/// 根据父级主键获取数据
///
/// 关键字
/// 父级主键
///
Task> GetModuleListByParentId(string keyword, string parentId);
///
/// 功能实体
///
/// 主键值
///
Task GetModuleEntity(string keyValue);
#endregion 功能模块
#region 模块按钮
///
/// 获取按钮列表数据
///
/// 模块Id
///
Task> GetButtonListNoAuthorize(string moduleId);
///
/// 获取按钮列表数据
///
/// 模块Id
///
Task> GetButtonList(string moduleId);
///
/// 获取按钮列表数据
///
///
Task> GetButtonList();
///
/// 获取按钮列表数据
///
/// 功能模块地址
///
Task> GetButtonListByUrl(string url);
///
/// 获取按钮列表树形数据(基于功能模块)
///
/// 需要设置的角色对象
///
Task> GetButtonCheckTree(string objectId);
#endregion 模块按钮
#region 模块视图
///
/// 获取视图列表数据
///
/// 模块Id
///
Task> GetColumnList(string moduleId);
///
/// 获取视图列表数据
///
///
Task> GetColumnList();
///
/// 获取视图列表数据
///
/// 功能模块地址
///
Task> GetColumnListByUrl(string url);
///
/// 获取按钮列表树形数据(基于功能模块)
///
/// 需要设置的角色对象
///
Task> GetColumnCheckTree(string objectId);
#endregion 模块视图
#region 模块表单
///
/// 获取表单字段数据
///
/// 模块Id
///
Task> GetFormList(string moduleId);
///
/// 获取表单字段数据
///
///
Task> GetFormList();
///
/// 获取表单字段数据
///
/// 功能模块地址
///
Task> GetFormListByUrl(string url);
///
/// 获取表单字段树形数据(基于功能模块)
///
/// 需要设置的角色对象
///
Task> GetFormCheckTree(string objectId);
#endregion 模块表单
#region 提交数据
///
/// 虚拟删除模块功能
///
/// 主键值
Task Delete(string keyValue);
///
/// 保存模块功能实体(新增、修改)
///
/// 主键值
/// 实体
/// 按钮列表
/// 视图列集合
/// 表单字段集合
Task SaveEntity(string keyValue, ModuleEntity moduleEntity, List moduleButtonEntitys, List moduleColumnEntitys, List moduleFormEntitys);
#endregion 提交数据
}
}