feat:1. 修正错误命名 2. 为学习会话详情接口增加taskName字段

This commit is contained in:
2025-06-29 16:48:31 +08:00
parent aa9a278108
commit 5f9e01cf14
10 changed files with 106 additions and 36 deletions
@@ -0,0 +1,53 @@
package com.guo.learningprogresstracker.dto;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class StudySessionsDto {
private String sessionNum;
/**
* 任务名称
*/
private String taskName;
/**
* 任务编号
*/
private String taskNum;
/**
* 学习开始时间
*/
private LocalDateTime startTime;
private LocalDateTime lastStartTime;
/**
* 学习结束时间
*/
private LocalDateTime endTime;
/**
* 实际使用时间(秒)
*/
private double actualTime;
/**
* 有效学习时间(秒)
*/
private double effectiveTime;
/**
* 有效时间比
*/
private double effectivenessRatio;
/**
* 学习会话的状态(进行中、暂停、已结束)
*/
private String sessionState;
}
@@ -6,12 +6,16 @@ import lombok.Data;
import java.time.LocalDateTime;
@Data
public class StudySessionResponce {
public class StudySessionResponse {
@Schema(description = "会话编号")
private String sessionNum;
private String taskNum;
@Schema(description = "任务名称")
private String taskName;
@Schema(description = "任务编号")
private String taskNum;
@Schema(description = "学习开始时间")
private LocalDateTime startTime;