From 1f721c531a97c59425a3d2e4736dd70d6252c86a Mon Sep 17 00:00:00 2001 From: navyjeongs Date: Wed, 17 Jan 2024 23:45:12 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20query,=20mutation=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EC=83=81=EC=88=98=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/queryManagement.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/constants/queryManagement.ts diff --git a/src/constants/queryManagement.ts b/src/constants/queryManagement.ts new file mode 100644 index 0000000..6b87398 --- /dev/null +++ b/src/constants/queryManagement.ts @@ -0,0 +1,17 @@ +import { fetchMyPageWithSSR, sendEmailVerification } from '@apis/mypage'; + +const QUERY_MANAGEMENT = { + mypage: { + queryKey: 'mypage', + queryFn: fetchMyPageWithSSR, + }, +}; + +const MUTATION_MANAGEMENT = { + email: { + mutateKey: 'sendEmail', + mutateFn: (email: string) => sendEmailVerification(email), + }, +}; + +export { QUERY_MANAGEMENT, MUTATION_MANAGEMENT };