import {apiClient} from "../../../../../api/apiClient.ts"; import type {PageResponse} from "../../../../../type/pageResponse.ts"; import type { AuthorRoleListItem, AuthorRoleSearchParams, UpdateAuthorRoleParams } from "../type/authorRole.types.ts"; export async function fetchAuthorRoleList(params: AuthorRoleSearchParams) { return apiClient.get>(`/sec/ram/authorList.do`, params); } export async function updateAuthorRole(params: UpdateAuthorRoleParams) { return apiClient.post(`/sec/ram/updateAuthorRole.do?authorCode=${params.authorCode}&roleCode=${params.roleCode}®Yn=${params.regYn}`); }