cap 与系统信息

This commit is contained in:
ryan
2026-06-08 09:28:12 +08:00
parent 9d0f9f0576
commit 72d72810b2
33 changed files with 3324 additions and 98 deletions
@@ -11,6 +11,7 @@ import type {
ListUsersRequest,
ListUsersResponse,
SystemConfig,
SystemStatus,
TaskExecution,
TaskMeta,
TaskTypeResponse,
@@ -318,4 +319,14 @@ export class AdminService extends BaseService {
static async createUser(request: CreateUserRequest): Promise<AdminUser> {
return this.post<AdminUser>('/users', request);
}
/**
* 获取系统状态
* @returns 系统状态指标数据
* @throws {UnauthorizedError} 当未登录时
* @throws {ForbiddenError} 当无管理员权限时
*/
static async getSystemStatus(): Promise<SystemStatus> {
return this.get<SystemStatus>('/status');
}
}