import { adminRequest } from "@/lib/admin-http"; const A = `/admin`; export type AdminSettingItem = { key: string; value: unknown; group: string; description: string | null; }; export type AdminSettingListResponse = { items: AdminSettingItem[]; }; export async function getAdminSettings( group: string, ): Promise { return adminRequest.get(`${A}/settings`, { params: { group }, }); } export async function updateAdminSetting( key: string, value: unknown, ): Promise { return adminRequest.put(`${A}/settings/${key}`, { value }); }