重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s

This commit is contained in:
SpecialX
2025-10-09 18:57:28 +08:00
parent 403b34a098
commit ac900159ba
289 changed files with 11948 additions and 20150 deletions

View File

@@ -1,9 +1,7 @@
using Entities.Contracts;
using Entities.DTO;
using Entities.DTO;
using Newtonsoft.Json;
using System.Net.Http.Json;
using TechHelper.Client.HttpRepository;
using TechHelper.Services;
namespace TechHelper.Client.Services
{
@@ -38,7 +36,7 @@ namespace TechHelper.Client.Services
{
var result = await _client.PostAsJsonAsync("class/getClassStudents","");
var content = await result.Content.ReadAsStringAsync();
var users = JsonConvert.DeserializeObject<List<StudentDto>>(content);
var users = JsonConvert.DeserializeObject<List<StudentExamDetailDto>>(content);
return ApiResponse.Success(result: users);
}
catch(Exception ex)
@@ -63,7 +61,7 @@ namespace TechHelper.Client.Services
}
}
public StudentDto GetStudents(byte Class)
public StudentExamDetailDto GetStudents(byte Class)
{
try
{
@@ -71,18 +69,18 @@ namespace TechHelper.Client.Services
var content = result.Result.Content.ReadAsStringAsync();
if (content.Result != null)
{
var users = JsonConvert.DeserializeObject<StudentDto>(content.Result);
var users = JsonConvert.DeserializeObject<StudentExamDetailDto>(content.Result);
return users;
}
else
{
return new StudentDto();
return new StudentExamDetailDto();
}
}
catch (Exception ex)
{
Console.WriteLine($"获取失败,{ex.Message}, InnerException: {ex.InnerException}");
return new StudentDto();
return new StudentExamDetailDto();
}
}