using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Domain.Services;
using YGNT.QuestionLibrary.Core.Disciplines.Dto;

namespace YGNT.QuestionLibrary.Core.Disciplines.Domain
{
    /// <summary>
    /// 细分题型管理
    /// </summary>
    public interface IDisciplineQuestionTypeManager : IDomainService
    {
        /// <summary>
        /// 检查细分题型名称是否被占用
        /// </summary>
        /// <param name="name"></param>
        /// <param name="disciplineId"></param>
        /// <returns></returns>
        Task CheckNameAsync(string name, int disciplineId);

        /// <summary>
        /// 获取学科下细分题型
        /// </summary>
        /// <param name="disciplineId"></param>
        /// <returns></returns>
        Task<List<DisciplineQuestionTypeDto>> GetDisciplineQuestionTypesAsync(int disciplineId);

        /// <summary>
        /// 获取学科下细分题型
        /// </summary>
        /// <param name="disciplineId"></param>
        /// <returns></returns>
        List<DisciplineQuestionTypeDto> GetDisciplineQuestionTypes(int disciplineId);

        /// <summary>
        /// 删除题型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);

        /// <summary>
        /// 删除题型
        /// </summary>
        /// <param name="disciplineQuestionType"></param>
        /// <returns></returns>
        Task DeleteAsync(DisciplineQuestionType disciplineQuestionType);
    }
}