feat: license文件导入支持
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user