using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using YGNT.QuestionLibrary.EducationCategories.Dto;

namespace YGNT.QuestionLibrary.EducationCategories
{
    /// <summary>
    /// 教育类别管理
    /// </summary>
    public interface IEducationCategoryAppService : IApplicationService
    {
        /// <summary>
        /// 查询教育类别列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        Task<PagedResultDto<EducationCategoryDto>> GetListAsync(SearchEducationCategoriesInputDto search);

        /// <summary>
        /// 查询教育类别详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<EducationCategoryDto> GetOneAsync(int id);


        /// <summary>
        /// 创建新教育类别
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task<int> CreateAsync(CreateEducationCategoryDto create);

        /// <summary>
        /// 修改教育类别
        /// </summary>
        /// <param name="id"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(int id, UpdateEducationCategoryDto update);

        /// <summary>
        /// 是否启用
        /// </summary>
        /// <param name="id"></param>
        /// <param name="isActive"></param>
        /// <returns></returns>
        Task ActiveAsync(int id, bool isActive);

        /// <summary>
        /// 是否启用
        /// </summary>
        /// <param name="idList"></param>
        /// <param name="isActive"></param>
        /// <returns></returns>
        Task ActiveListAsync(List<int> idList, bool isActive);

        /// <summary>
        /// 删除教育类别
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);

        /// <summary>
        /// 删除教育类别
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task DeleteListAsync(List<int> idList);
        /// <summary>
        /// 同步教育类别
        /// </summary>
        /// <returns></returns>
        Task DataSyncAsync();

        /// <summary>
        /// 获取默认的教育类别
        /// </summary>
        /// <returns></returns>
        Task<int> GetDefaultEducationCategory();
    }
}