import {apiClient} from "../../../../../api/apiClient.ts"; import type { AuthorRoleMenuFormItem, AuthorRoleMenuListItem, AuthorRoleMenuSearchParams, UpdateAuthorRoleMenuItemRequest } from "../type/authorRoleMenu.types.ts"; import type {PageResponse} from "../../../../../type/pageResponse.ts"; export async function fetchAuthorRoleMenuList(params: AuthorRoleMenuSearchParams) { return apiClient.get>(`/sym/mnu/mcm/list.do`, params); } export async function fetchAuthorRoleMenuDetail(authorCode: string) { return apiClient.get(`/sym/mnu/mcm/detail.do?authorCode=${authorCode}`); } export async function updateAuthorRoleMenu(params: UpdateAuthorRoleMenuItemRequest[]) { return apiClient.post(`/sym/mnu/mcm/EgovMenuCreatInsert.do`, params); }