using Abp.Application.Services;
using Abp.Application.Services.Dto;
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 ITestingAppService : IApplicationService
    {
        /// <summary>
        /// 查询测验列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        Task<PagedResultDto<TestingDto>> GetListAsync(SearchTestingInputDto search);
        /// <summary>
        /// 创建新测验
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task<int> CreateAsync(CreateTestingDto create);
        /// <summary>
        /// 修改测验
        /// </summary>
        /// <param name="id"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(int id, UpdateTestingDto update);
        /// <summary>
        /// 删除测验
        /// </summary>
        /// <param name="id"></param>
        Task DeleteAsync(int id);
        /// <summary>
        /// 获取测验详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<TestingDto> GetEntityAsync(int id);
        /// <summary>
        /// 根据测验ID查询列表(外接口)
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
       Task<List<TestingDto>> PostListAsync(SelectTestingInputDto search);
    }
}
