feat: 导入License
This commit is contained in:
@@ -65,6 +65,19 @@ export function updateLicense(data: LicenseApi.License) {
|
||||
return requestClient.put('/license/license/update', data);
|
||||
}
|
||||
|
||||
/** 下载导入模板 */
|
||||
export function importTemplate() {
|
||||
return requestClient.download('/license/license/get-import-template');
|
||||
}
|
||||
|
||||
/** 导入License */
|
||||
export function importLicense(file: File, updateSupport: boolean) {
|
||||
return requestClient.upload('/license/license/import', {
|
||||
file,
|
||||
updateSupport,
|
||||
});
|
||||
}
|
||||
|
||||
/** 重新License */
|
||||
export function reapplyLicense(data: LicenseApi.License) {
|
||||
return requestClient.put('/license/license/reapply', data);
|
||||
|
||||
Reference in New Issue
Block a user