feat: license模块调整
This commit is contained in:
@@ -26,7 +26,7 @@ export function getCustomerPage(params: PageParam) {
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询客户分页 */
|
||||
/** 查询客户列表 */
|
||||
export function getCustomerList() {
|
||||
return requestClient.get<CustomerApi.Customer[]>('/license/customer/list');
|
||||
}
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user