ac0154c1fb
- TaskInfo DTO 新增 materialUrl 字段 - StudySessionResponse 新增 materialUrl 和 taskId 字段 - StudySessionsServiceImpl 在学习会话响应中填充 materialUrl 和 taskId - TasksServiceImpl 更新任务时保留原有 taskNum - 修复 TaskInfoResponse 注释格式错误
58 lines
1.4 KiB
Java
58 lines
1.4 KiB
Java
package com.guo.learningprogresstracker.dto.response;
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema;
|
||
import lombok.Data;
|
||
|
||
import java.time.LocalDateTime;
|
||
|
||
@Data
|
||
public class StudySessionResponse {
|
||
|
||
@Schema(description = "会话编号")
|
||
private String sessionNum;
|
||
|
||
@Schema(description = "任务名称")
|
||
private String taskName;
|
||
|
||
@Schema(description = "任务编号")
|
||
private String taskNum;
|
||
|
||
@Schema(description = "学习材料(Markdown)")
|
||
private String materialUrl;
|
||
|
||
@Schema(description = "任务ID")
|
||
private Integer taskId;
|
||
|
||
@Schema(description = "学习开始时间")
|
||
private LocalDateTime startTime;
|
||
|
||
@Schema(description = "上次本会话开始时间")
|
||
private LocalDateTime lastStartTime;
|
||
|
||
|
||
@Schema(description = "学习结束时间")
|
||
private LocalDateTime endTime;
|
||
|
||
|
||
@Schema(description = "实际使用时间(秒)")
|
||
private double actualTime;
|
||
|
||
|
||
@Schema(description = "有效学习时间(秒)")
|
||
private double effectiveTime;
|
||
|
||
|
||
@Schema(description = "有效时间比")
|
||
private Double effectivenessRatio;
|
||
|
||
|
||
@Schema(description = "学习会话的状态(进行中、暂停、已结束)")
|
||
private String sessionState;
|
||
|
||
@Schema(description = "倒计时指针位置(毫秒)")
|
||
private double pointerPosition;
|
||
|
||
@Schema(description = "系统提示")
|
||
private String systemMessage;
|
||
}
|