feat: 首页添加到期提醒和项目进展

This commit is contained in:
caiyuchao
2025-08-11 09:49:14 +08:00
parent 266bb61695
commit 2c6106c869
3 changed files with 63 additions and 22 deletions

View File

@@ -17,6 +17,7 @@ export namespace CommentApi {
depth?: number; // 评论深度
content?: string; // 评论内容
children?: Comment[]; // 子评论
projectName?: string; // 项目名称
}
}
@@ -27,6 +28,11 @@ export function getCommentTree(projectId: number, sort: boolean = false) {
);
}
/** 查询评论最新列表 */
export function getLatestCommentList() {
return requestClient.get<CommentApi.Comment[]>(`/license/comment/latest`);
}
/** 新增评论 */
export function createComment(data: CommentApi.Comment) {
return requestClient.post('/license/comment/create', data);