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

namespace YGNT.QuestionLibrary.Testings
{
    /// <summary>
    /// 测验试题
    /// </summary>
    public interface ITestingQuestionAppService : IApplicationService
    {
        /// <summary>
        /// 根据测验ID查询所有试题
        /// </summary>
        /// <param name="testingId"></param>
        /// <returns></returns>
        Task<List<TestingQuestionDto>> GetListAsync(int testingId);
        /// <summary>
        /// 更新测验试题
        /// </summary>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(UpdateTestingQuestionDto update);

        /// <summary>
        /// 根据测验ID查询所有试题 (外接口)
        /// </summary>
        /// <param name="testingId"></param>
        /// <returns></returns>
        Task<List<TestingQuestionDto>> GetQuestionAsync(int testingId);
    }
}
