feat: license模块调整

This commit is contained in:
caiyuchao
2025-07-02 16:20:56 +08:00
parent 01bada138c
commit 7d46e24db7
6 changed files with 137 additions and 82 deletions

View File

@@ -26,7 +26,7 @@ export function getCustomerPage(params: PageParam) {
);
}
/** 查询客户分页 */
/** 查询客户列表 */
export function getCustomerList() {
return requestClient.get<CustomerApi.Customer[]>('/license/customer/list');
}

View File

@@ -8,7 +8,7 @@ export namespace ProjectApi {
/** 项目信息 */
export interface Project {
id: number; // 主键
projectId?: number; // 项目ID
customerId?: number; // 客户ID
name?: string; // 项目名称
code?: string; // 项目编号
contractCode?: string; // 合同编号
@@ -35,6 +35,13 @@ export function getProjectPage(params: PageParam) {
);
}
/** 查询项目列表 */
export function getProjectList(params: any) {
return requestClient.get<ProjectApi.Project[]>('/license/project/list', {
params,
});
}
/** 查询项目详情 */
export function getProject(id: number) {
return requestClient.get<ProjectApi.Project>(`/license/project/get?id=${id}`);