diff --git a/Mine/src/api/magazine.ts b/Mine/src/api/magazine.ts index ad2f171..c05f09d 100644 --- a/Mine/src/api/magazine.ts +++ b/Mine/src/api/magazine.ts @@ -4,7 +4,11 @@ import type { FeedDto, PatchMagazineTitleDto, PostMagazineDto, + RequestAddSection, + RequestAddSectionInSectionPage, RequestDeleteMagazine, + ResponseAddSection, + ResponseAddSectionInSectionPage, ResponseFeed, ResponseRecentSection, SectionDetailDto, @@ -93,7 +97,21 @@ export const createMoodboard = async (magazineId: number) => { return res.data } +export const postAddSection = async ({ magazineId, message }: RequestAddSection): Promise => { + const res = await axiosInstance.post(`api/magazines/${magazineId}/interact`, { message }) + return res.data +} + +export const postAddSectionInSectionPage = async ({ + magazineId, + sectionId, + message, +}: RequestAddSectionInSectionPage): Promise => { + const res = await axiosInstance.post(`api/magazines/${magazineId}/sections/${sectionId}/interact`, { message }) + return res.data +} + export const patchMagazineCover = async (id: number, coverImageUrl: string) => { const res = await axiosInstance.patch(`api/magazines/${id}/cover`, { coverImageUrl }) return res.data -} \ No newline at end of file +} diff --git a/Mine/src/components/LLMInputBox.tsx b/Mine/src/components/LLMInputBox.tsx index d349dde..84339b1 100644 --- a/Mine/src/components/LLMInputBox.tsx +++ b/Mine/src/components/LLMInputBox.tsx @@ -40,7 +40,7 @@ export default function LLMInputBox({ onSend }: LLMInputBoxProps) { return (