mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 17:50:13 +00:00
Dashboard Redesign (#48)
* feat: add user_template setting * style: header * style: page padding * style: header * feat: header now time * style: login page * feat: nav indicator * style: button inset shadow * style: footer text size * feat: header show login_ip * fix: error toast * fix: frontend_templates setting * fix: lint * feat: pr auto format * chore: auto-fix linting and formatting issues --------- Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
hamster1963
parent
811835ffe5
commit
540bb0185d
@@ -1,18 +1,19 @@
|
||||
import { ModelServerGroupForm, ModelServerGroupResponseItem } from "@/types"
|
||||
import { fetcher, FetcherMethod } from "./api"
|
||||
|
||||
import { FetcherMethod, fetcher } from "./api"
|
||||
|
||||
export const createServerGroup = async (data: ModelServerGroupForm): Promise<number> => {
|
||||
return fetcher<number>(FetcherMethod.POST, '/api/v1/server-group', data);
|
||||
return fetcher<number>(FetcherMethod.POST, "/api/v1/server-group", data)
|
||||
}
|
||||
|
||||
export const updateServerGroup = async (id: number, data: ModelServerGroupForm): Promise<void> => {
|
||||
return fetcher<void>(FetcherMethod.PATCH, `/api/v1/server-group/${id}`, data);
|
||||
return fetcher<void>(FetcherMethod.PATCH, `/api/v1/server-group/${id}`, data)
|
||||
}
|
||||
|
||||
export const deleteServerGroups = async (id: number[]): Promise<void> => {
|
||||
return fetcher<void>(FetcherMethod.POST, `/api/v1/batch-delete/server-group`, id);
|
||||
return fetcher<void>(FetcherMethod.POST, `/api/v1/batch-delete/server-group`, id)
|
||||
}
|
||||
|
||||
export const getServerGroups = async (): Promise<ModelServerGroupResponseItem[]> => {
|
||||
return fetcher<ModelServerGroupResponseItem[]>(FetcherMethod.GET, '/api/v1/server-group', null);
|
||||
return fetcher<ModelServerGroupResponseItem[]>(FetcherMethod.GET, "/api/v1/server-group", null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user