feat: 导入License

This commit is contained in:
caiyuchao
2025-08-06 18:36:31 +08:00
parent c2c1a1dcfe
commit a66b84b8ba
6 changed files with 183 additions and 3 deletions

View File

@@ -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);