Files
TechHelper/TechHelper.Server/Services/IExamService.cs
SpecialX a21ca80782 1
2025-06-27 19:03:10 +08:00

39 lines
901 B
C#

using Entities.Contracts;
using Entities.DTO;
using TechHelper.Services;
namespace TechHelper.Server.Services
{
public interface IExamService : IBaseService<AssignmentDto, Guid>
{
/// <summary>
/// 根据 ID 获取试卷 DTO。
/// </summary>
Task<AssignmentDto> GetExamByIdAsync(Guid id);
/// <summary>
/// 获取指定用户的所有试卷预览。
/// </summary>
Task<ApiResponse> GetAllExamPreviewsAsync(Guid userId);
/// <summary>
/// 创建一个新的试卷。
/// </summary>
/// <returns>创建成功的试卷ID</returns>
Task<ApiResponse> CreateExamAsync(AssignmentDto examDto);
Task<ApiResponse> SubmissionAssignment(SubmissionDto submissionDto);
Task<ApiResponse> AssignmentToAllStudentsAsync(Guid id);
Task<ApiResponse> AssignmentToStudentsAsync(Guid assignementId, Guid studentId);
Task<ApiResponse> GetAllSubmissionAsync(Guid id);
}
}