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

namespace YGNT.QuestionLibrary.Papers
{
    /// <summary>
    /// 试卷设置
    /// </summary>
    public interface IPaperSettingAppService : IApplicationService
    {
        /// <summary>
        /// 获取试卷设置
        /// </summary>
        /// <param name="paperId"></param>
        /// <returns></returns>
        Task<List<PaperSettingDto>> GetPaperSettingsAsync(int paperId);

        /// <summary>
        /// 获取试卷细分题型排序设置
        /// </summary>
        /// <param name="paperId"></param>
        /// <returns></returns>
        Task<List<DisciplineQtSortSettingDto>> GetDisciplineSortSettingAsync(int paperId);

        /// <summary>
        /// 修改试卷细分题型排序
        /// </summary>
        /// <param name="paperId"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateDisciplineSortSettingAsync(int paperId, List<UpdateDisciplineQtSortSettingDto> update);

        /// <summary>
        /// 保存设置
        /// </summary>
        /// <param name="paperId"></param>
        /// <param name="settings"></param>
        /// <returns></returns>
        Task SavePaperSettingAsync(int paperId, List<SavePaperSetDto> settings);

    }
}