using Abp.Application.Services;
using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using YunDa.ISAS.DataTransferObject;
namespace YunDa.ISAS.Application.Core
{
///
/// 基础接口服务
///
/// 查找条件
/// 结果返回值
/// 添加或修改输入值
/// 数据主键
public interface IAppServiceBase : IApplicationService
where TSearchConditionInput : new()
where TResultOuput : EntityDto
where TEditInput : EntityDto
{
///
/// 按条件查找
///
/// 查询条件
/// 返回满足条件的结果
RequestPageResult FindDatas(PageSearchCondition searchCondition);
///
/// 添加或更新数据
///
/// 输入任务单
/// 返回是否成功,并返回更新或添加后的数据
Task> CreateOrUpdateAsync(TEditInput input);
///
/// 根据ID列表删除数据
///
/// ID列表
/// 返回是否删除成功
Task DeleteByIdsAsync(List ids);
///
/// 根据ID删除数据
///
/// ID
/// 返回是否删除成功
Task DeleteByIdAsync(TDelPrimaryKey id);
}
}