Files
Aq-Accounting-Spring/src/main/java/com/accounting/dto/NoteListItem.java
T
2026-09-23 14:07:19 +08:00

34 lines
705 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.accounting.dto;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
* 笔记列表项 —— 刻意不含 content 字段
*
* <p>列表接口如果要带上正文,一页 20 条就可能传输几 MB,
* 而这个后端部署在公网服务器上,客户端跨网络拉取会明显变慢。</p>
*/
@Data
public class NoteListItem {
private Long id;
/** 所属目录 ID,null = 未分类 */
private Long folderId;
private String title;
/** 摘要,由正文自动提取 */
private String summary;
/** 标签列表 */
private List<String> tagList;
private Integer isPinned;
private LocalDateTime updateTime;
}