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

namespace YGNT.QuestionLibrary.Papers
{
    public interface IScoringAppService : IApplicationService
    {
        /// <summary>
        /// 获取所有的评分标准
        /// </summary>
        /// <param name="keyWord"></param>
        /// <returns></returns>
        Task<List<ScoringDto>> GetAllAsync(string keyWord);

        /// <summary>
        /// 创建新评分标准
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task<int> CreateAsync(CreateScoringDto create);

        /// <summary>
        /// 修改评分标准
        /// </summary>
        /// <param name="id"></param>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateAsync(int id, UpdateScoringDto update);

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