教练提交学生体质数据前校验任教班级关系,调用评估服务生成报告并复用现有报告持久化逻辑。 新增当前登录学员或家长的最新报告查询接口,按令牌中的学校与学号限定查询范围;补充请求 DTO 与服务接口。 验证:dotnet build WeChatApplet/YD_WeChatApplet.Api.csproj --no-restore --nologo -clp:ErrorsOnly(0 错误)。
32 lines
768 B
C#
32 lines
768 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace YD_WeChatApplet.Api.Dto.Teacher
|
|
{
|
|
/// <summary>
|
|
/// 新增体态报告
|
|
/// </summary>
|
|
public class GeneratePostureReportDto
|
|
{
|
|
[Required]
|
|
public string StudentNo { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public PostureReportInputDto? Input { get; set; }
|
|
}
|
|
|
|
public class AddPostureReportDto
|
|
{
|
|
/// <summary>
|
|
/// 学生学号
|
|
/// </summary>
|
|
[Required]
|
|
public string StudentNo { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// fitcamp365 /api/evaluate 接口的完整成功响应
|
|
/// </summary>
|
|
[Required]
|
|
public PostureReportContentDto? ReportContent { get; set; }
|
|
}
|
|
}
|