mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 16:46:37 +08:00
系统控制台完成更新
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {BaseService} from '@/lib/services';
|
||||
import type {
|
||||
AdminUser,
|
||||
AppUpdateStatus,
|
||||
AuthSource,
|
||||
AuthSourceRequest,
|
||||
CacheConfig,
|
||||
@@ -136,6 +137,16 @@ export class AdminService extends BaseService {
|
||||
return this.post<{ success: boolean; log: string; error: string }>('/system-configs/smtp/test', request);
|
||||
}
|
||||
|
||||
// ==================== 应用更新 ====================
|
||||
|
||||
static async getUpdateStatus(): Promise<AppUpdateStatus> {
|
||||
return this.get<AppUpdateStatus>('/update');
|
||||
}
|
||||
|
||||
static async applyUpdate(): Promise<void> {
|
||||
return this.post<void>('/update/apply');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有已存在的文件业务类型及默认内置类型列表
|
||||
* @returns 业务类型列表
|
||||
|
||||
Reference in New Issue
Block a user