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.
126 lines
3.6 KiB
126 lines
3.6 KiB
using ce.autofac.extension;
|
|
using learun.util;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace learun.iapplication
|
|
{
|
|
/// <summary>
|
|
/// 版 本 EasyCode EC管理后台
|
|
/// Copyright (c) 2019-present EC管理有限公司
|
|
/// 创建人:tobin
|
|
/// 日 期:2019.09.19
|
|
/// 描 述:数据字典
|
|
/// </summary>
|
|
public interface DataItemIBLL : IBLL
|
|
{
|
|
#region 数据字典分类
|
|
|
|
/// <summary>
|
|
/// 分类列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<DataItemEntity>> GetClassifyList();
|
|
|
|
/// <summary>
|
|
/// 分类列表
|
|
/// </summary>
|
|
/// <param name="keyword">关键词(名称/编码)</param>
|
|
/// <param name="enabledMark">是否只取有效</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<DataItemEntity>> GetClassifyList(string keyword, bool enabledMark = true);
|
|
|
|
/// <summary>
|
|
/// 获取分类树形数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<TreeModel>> GetClassifyTree();
|
|
|
|
/// <summary>
|
|
/// 保存分类数据实体
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <param name="entity">实体</param>
|
|
Task SaveClassifyEntity(string keyValue, DataItemEntity entity);
|
|
|
|
/// <summary>
|
|
/// 删除分类数据
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
Task DeleteClassify(string keyValue);
|
|
|
|
/// <summary>
|
|
/// 通过编号获取字典分类实体
|
|
/// </summary>
|
|
/// <param name="itemCode">编码</param>
|
|
/// <returns></returns>
|
|
Task<DataItemEntity> GetClassifyEntityByCode(string itemCode);
|
|
|
|
#endregion 数据字典分类
|
|
|
|
#region 字典明细
|
|
|
|
/// <summary>
|
|
/// 获取数据字典明显
|
|
/// </summary>
|
|
/// <param name="itemCode">分类编码</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<DataItemDetailEntity>> GetDetailList(string itemCode);
|
|
|
|
/// <summary>
|
|
/// 获取数据字典明显
|
|
/// </summary>
|
|
/// <param name="itemCode">分类编码</param>
|
|
/// <param name="keyword">关键词(名称/值)</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<DataItemDetailEntity>> GetDetailList(string itemCode, string keyword);
|
|
|
|
/// <summary>
|
|
/// 获取数据字典明显
|
|
/// </summary>
|
|
/// <param name="itemCode">分类编号</param>
|
|
/// <param name="parentId">父级主键</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<DataItemDetailEntity>> GetDetailListByParentId(string itemCode, string parentId);
|
|
|
|
/// <summary>
|
|
/// 获取字典明细树形数据
|
|
/// </summary>
|
|
/// <param name="itemCode">分类编号</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<TreeModel>> GetDetailTree(string itemCode);
|
|
|
|
/// <summary>
|
|
/// 项目值不能重复
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <param name="itemValue">项目值</param>
|
|
/// <param name="itemCode">分类编码</param>
|
|
/// <returns></returns>
|
|
Task<bool> ExistDetailItemValue(string keyValue, string itemValue, string itemCode);
|
|
|
|
/// <summary>
|
|
/// 项目名不能重复
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <param name="itemName">项目名</param>
|
|
/// <param name="itemCode">分类编码</param>
|
|
/// <returns></returns>
|
|
Task<bool> ExistDetailItemName(string keyValue, string itemName, string itemCode);
|
|
|
|
/// <summary>
|
|
/// 保存明细数据实体
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <param name="entity">实体</param>
|
|
Task SaveDetailEntity(string keyValue, DataItemDetailEntity entity);
|
|
|
|
/// <summary>
|
|
/// 虚拟删除明细数据
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
Task DeleteDetail(string keyValue);
|
|
|
|
#endregion 字典明细
|
|
}
|
|
}
|