import { requestClient } from '#/api/request';

/** 站内信类型字典 API */
const prefix = 'admin-notice-type/';

export async function getAdminNoticeTypeList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

export async function getAdminNoticeTypeOption(data?: any) {
  return requestClient.get<any>(`${prefix}option`, { params: data });
}

export async function createAdminNoticeType(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}create`, data);
}

export async function updateAdminNoticeType(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}update`, data);
}

export async function deleteAdminNoticeType(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}delete`, data);
}
