using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using YGNT.Infrastructure.Model;
using YGNT.QuestionLibrary.CognitiveAbilities.Dto;

namespace YGNT.QuestionLibrary.CognitiveAbilities
{
    /// <summary>
    /// 认知能力
    /// </summary>
    public interface ICognitiveAbilityAppService : IApplicationService
    {
        /// <summary>
        /// 查询认知能力列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        Task<PagedResultDto<CognitiveAbilityDto>> GetListAsync(SearchBaseInputDto search);

        /// <summary>
        /// 查询认知能力详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CognitiveAbilityDto> GetOneAsync(int id);


        /// <summary>
        /// 创建新认知能力
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task<int> CreateAsync(CreateCognitiveAbilityDto create);

        /// <summary>
        /// 修改认知能力
        /// </summary>
        /// <param name="id"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(int id, UpdateCognitiveAbilityDto update);

        /// <summary>
        /// 删除认知能力
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
}