import { ModelNotificationGroupForm, ModelNotificationGroupResponseItem } from "@/types" import { fetcher, FetcherMethod } from "./api" export const createNotificationGroup = async (data: ModelNotificationGroupForm): Promise => { return fetcher(FetcherMethod.POST, '/api/v1/notification-group', data); } export const updateNotificationGroup = async (id: number, data: ModelNotificationGroupForm): Promise => { return fetcher(FetcherMethod.PATCH, `/api/v1/notification-group/${id}`, data); } export const deleteNotificationGroups = async (id: number[]): Promise => { return fetcher(FetcherMethod.POST, `/api/v1/batch-delete/notification-group`, id); } export const getNotificationGroups = async (): Promise => { return fetcher(FetcherMethod.GET, '/api/v1/notification-group', null); }