feat: 批量转移服务器给其他用户

This commit is contained in:
naiba
2025-06-16 23:44:30 +08:00
parent 6fe192b944
commit 01ed6eae54
6 changed files with 141 additions and 19 deletions
+5
View File
@@ -1,4 +1,5 @@
import {
ModelBatchMoveServerForm,
ModelServer,
ModelServerConfigForm,
ModelServerForm,
@@ -15,6 +16,10 @@ export const deleteServer = async (id: number[]): Promise<void> => {
return fetcher<void>(FetcherMethod.POST, "/api/v1/batch-delete/server", id)
}
export const batchMoveServer = async (data: ModelBatchMoveServerForm): Promise<void> => {
return fetcher<void>(FetcherMethod.POST, "/api/v1/batch-move/server", data)
}
export const forceUpdateServer = async (id: number[]): Promise<ModelServerTaskResponse> => {
return fetcher<ModelServerTaskResponse>(FetcherMethod.POST, "/api/v1/force-update/server", id)
}