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.

61 lines
1.5 KiB

3 years ago
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.18
/// 描 述:行政区域
/// </summary>
public interface AreaIBLL : IBLL
{
#region 获取数据
/// <summary>
/// 获取区域列表数据
/// </summary>
/// <param name="parentId">父节点主键(0表示顶层)</param>
/// <param name="keyword">关键字查询(名称/编号)</param>
/// <returns></returns>
Task<IEnumerable<AreaEntity>> GetList(string parentId, string keyword = "");
/// <summary>
/// 获取区域数据树(某一级的)
/// </summary>
/// <param name="parentId">父级主键</param>
/// <returns></returns>
Task<IEnumerable<TreeModel>> GetTree(string parentId);
/// <summary>
/// 区域实体
/// </summary>
/// <param name="keyValue">主键值</param>
/// <returns></returns>
Task<AreaEntity> GetEntity(string keyValue);
#endregion 获取数据
#region 提交数据
/// <summary>
/// 虚拟删除区域
/// </summary>
/// <param name="keyValue">主键</param>
Task Delete(string keyValue);
/// <summary>
/// 保存区域表单(新增、修改)
/// </summary>
/// <param name="keyValue">主键值</param>
/// <param name="areaEntity">区域实体</param>
/// <returns></returns>
Task SaveEntity(string keyValue, AreaEntity areaEntity);
#endregion 提交数据
}
}