feat: license文件导入支持

This commit is contained in:
caiyuchao
2025-08-08 14:50:34 +08:00
parent 9e776ec06b
commit 266bb61695
4 changed files with 170 additions and 160 deletions

View File

@@ -27,11 +27,13 @@ export namespace LicenseApi {
neCodeList: NeCode[]; // 操作
oldLicense: License;
hasHistory: boolean;
showUpload?: boolean; // 是否显示上传按钮
}
export interface NeCode {
id: number; // 主键
neList: number[]; // 网元开关
activationCode: string; // 激活码
fileUrl: string; // 文件地址
}
}
@@ -60,6 +62,11 @@ export function createLicense(data: LicenseApi.License) {
return requestClient.post('/license/license/create', data);
}
/** 修改License */
export function updateLicenseDetail(data: LicenseApi.NeCode) {
return requestClient.put('/license/license/update-detail', data);
}
/** 修改License */
export function updateLicense(data: LicenseApi.License) {
return requestClient.put('/license/license/update', data);