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

namespace YGNT.QuestionLibrary.QuestionTypes
{
    /// <summary>
    /// 学科细分题型
    /// </summary>
    public interface IDisciplineQuestionTypeAppService : IApplicationService
    {
        /// <summary>
        /// 获取学科细分题型
        /// </summary>
        /// <param name="disciplineId">学科id</param>
        /// <returns></returns>
        Task<List<DisciplineQuestionTypeDto>> GetListAsync(int disciplineId);

        /// <summary>
        /// 新建学科细分题型
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task<int> CreateAsync(CreateDisciplineQuestionTypeDto create);

        /// <summary>
        /// 修改学科细分题型
        /// </summary>
        /// <param name="id"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(int id, UpdateDisciplineQuestionTypeDto update);

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