mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
31 lines
614 B
TypeScript
31 lines
614 B
TypeScript
import http from "@/http/config";
|
|
|
|
export const getList = (params?: Record<string, unknown>) => {
|
|
return http({
|
|
url: "/api/admin/apikey/list",
|
|
method: "get",
|
|
params,
|
|
});
|
|
};
|
|
export const save = (data?: Record<string, unknown>) => {
|
|
return http({
|
|
url: "/api/admin/apikey/save",
|
|
method: "post",
|
|
data,
|
|
});
|
|
};
|
|
export const deleting = (id: string | number) => {
|
|
return http({
|
|
url: `/api/admin/apikey/remove`,
|
|
method: "post",
|
|
data: { id },
|
|
});
|
|
};
|
|
export const setStatus = (data) => {
|
|
return http({
|
|
url: `/api/admin/apikey/set`,
|
|
method: "post",
|
|
data,
|
|
});
|
|
};
|