架构性调整【懒得区分了,哈哈哈哈】,主要是跑通了第一个功能测试
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.guo.learningprogresstracker.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PriorityDto {
|
||||
/**
|
||||
* 用户设置的任务紧急性
|
||||
*/
|
||||
private Integer urgency;
|
||||
|
||||
/**
|
||||
* 用户设置的任务重要性
|
||||
*/
|
||||
private Integer importance;
|
||||
|
||||
/**
|
||||
* 任务的内容难度
|
||||
*/
|
||||
private Integer contentDifficulty;
|
||||
|
||||
/**
|
||||
* 任务的未来价值
|
||||
*/
|
||||
private Integer futureValue;
|
||||
|
||||
/**
|
||||
* 用户对任务的主观优先级
|
||||
*/
|
||||
private Integer subjectivePriority;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.guo.learningprogresstracker.dto.request;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 学习任务-请求参数-创建
|
||||
*/
|
||||
@Data
|
||||
public class TaskRequest {
|
||||
static class Create{}
|
||||
/**
|
||||
* 学习任务的名称
|
||||
*/
|
||||
@NotEmpty(message = "必须指定非空的任务名称", groups = TaskRequest.Create.class)
|
||||
private String taskName;
|
||||
|
||||
/**
|
||||
* 学习材料的存储URL
|
||||
*/
|
||||
private String materialUrl;
|
||||
|
||||
/**
|
||||
* 用户设置的任务紧急性
|
||||
*/
|
||||
@NotEmpty(message = "必须指定【任务紧急性】指标", groups = Create.class)
|
||||
private Integer urgency;
|
||||
|
||||
/**
|
||||
* 用户设置的任务重要性
|
||||
*/
|
||||
@NotEmpty(message = "必须指定【任务重要性】指标", groups = Create.class)
|
||||
private Integer importance;
|
||||
|
||||
/**
|
||||
* 任务的内容难度
|
||||
*/
|
||||
@NotEmpty(message = "必须指定【内容难度】指标", groups = Create.class)
|
||||
private Integer contentDifficulty;
|
||||
|
||||
/**
|
||||
* 任务的未来价值
|
||||
*/
|
||||
@NotEmpty(message = "必须指定【未来价值】指标", groups = Create.class)
|
||||
private Integer futureValue;
|
||||
|
||||
/**
|
||||
* 用户对任务的主观优先级
|
||||
*/
|
||||
@NotEmpty(message = "必须指定【主观优先级】指标", groups = Create.class)
|
||||
private Integer subjectivePriority;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.guo.learningprogresstracker.dto.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class TaskInfoResponse {
|
||||
// 任务列表
|
||||
private List<TaskInfo> taskList;
|
||||
|
||||
|
||||
static class TaskInfo{
|
||||
// 任务名称
|
||||
private String taskName;
|
||||
// 任务描述
|
||||
private String taskDescription;
|
||||
// 任务优先级
|
||||
private Integer taskPriority;
|
||||
// 上次该任务学习情况
|
||||
private String lastLearningStatus;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user