Files
lpt-be/src/main/java/com/guo/learningprogresstracker/dto/TaskOption.java
T

17 lines
774 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.guo.learningprogresstracker.dto;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 任务的最小选项(任务编号 + 名称),供「归类到已有任务」这类下拉使用。
*
* <p>刻意不复用 {@code /review/tasks}:那条接口会做复习统计聚合(时长/报告数/碎片数),
* 且现在已按页返回;下拉需要的是全部任务的一个最小列表。也不复用分页的 {@code /tasks},
* 否则任务多起来下拉会悄悄只显示第一页。</p>
*
* <p>排序与任务列表一致(优先级倒序),保证下拉里的顺序稳定。</p>
*/
public record TaskOption(
@Schema(description = "任务编号") String taskNum,
@Schema(description = "任务名称") String taskName) {}