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);

View File

@@ -28,6 +28,8 @@ export namespace LicenseApi {
oldLicense: License;
hasHistory: boolean;
showUpload?: boolean; // 是否显示上传按钮
customerName?: string; // 客户名称
projectName?: string; // 项目名称
}
export interface NeCode {
id: number; // 主键
@@ -57,6 +59,13 @@ export function getLicenseHistory(id: number) {
);
}
/** 查询License到期 */
export function getLicenseExpiry() {
return requestClient.get<LicenseApi.License[]>(
`/license/license/list-expiry`,
);
}
/** 新增License */
export function createLicense(data: LicenseApi.License) {
return requestClient.post('/license/license/create', data);