[as] feat: 행정지원 문서 파일 첨부 로직 수정
This commit is contained in:
@@ -16,7 +16,14 @@ async function downloadAttachmentByAtflCd(atflCd: string): Promise<AxiosResponse
|
||||
});
|
||||
}
|
||||
|
||||
async function downloadAttachmentByAtflId(atflId: string): Promise<AxiosResponse> {
|
||||
return await client.get<Blob>(`${ENDPOINT.ATTACH_SERVICE.DOWNLOAD_BY_ATFL_ID}/${atflId}`, {
|
||||
responseType: "blob",
|
||||
});
|
||||
}
|
||||
|
||||
export const attachService = {
|
||||
deleteAttachmentByAtflId,
|
||||
downloadAttachmentByAtflCd,
|
||||
downloadAttachmentByAtflId,
|
||||
} satisfies AttachService;
|
||||
|
||||
Reference in New Issue
Block a user