增加一键重启所有网关按钮
This commit is contained in:
@@ -111,6 +111,20 @@ export async function restartProfileRuntime(name: string): Promise<ProfileRuntim
|
||||
return res.status
|
||||
}
|
||||
|
||||
export interface BatchRestartResult {
|
||||
success: boolean
|
||||
restarted: string[]
|
||||
failed: Array<{ profile: string; error?: string }>
|
||||
}
|
||||
|
||||
export async function restartAllProfileGateways(): Promise<BatchRestartResult> {
|
||||
return request<BatchRestartResult>('/api/hermes/profiles/gateways/restart-all', { method: 'POST' })
|
||||
}
|
||||
|
||||
export async function restartAllProfileRuntimes(): Promise<BatchRestartResult> {
|
||||
return request<BatchRestartResult>('/api/hermes/profiles/restart-all', { method: 'POST' })
|
||||
}
|
||||
|
||||
export interface CreateProfileResult {
|
||||
success: boolean
|
||||
/** clone=true 时被清理的独占平台凭据 KEY 名 */
|
||||
|
||||
Reference in New Issue
Block a user