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

/** 小程序工作台功能入口字典 API */
const prefix = 'wx-workbench-entry/';

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

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

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

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