feat: 首页添加到期提醒和项目进展
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user