笔记管理功能初始化
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
|
||||
private String title;
|
||||
|
||||
/** 摘要,由正文自动提取 */
|
||||
private String summary;
|
||||
|
||||
/** 标签列表 */
|
||||
private List<String> tagList;
|
||||
|
||||
private Integer isPinned;
|
||||
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
Reference in New Issue
Block a user