-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
34 changed files
with
1,595 additions
and
1,305 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { authClient } from '@/api/client'; | ||
|
||
// 임시 저장하기 | ||
export const postDraftLetter = async ({ | ||
draftId, | ||
content, | ||
receiverName, | ||
images | ||
}: { | ||
draftId: string; | ||
content: string; | ||
receiverName: string; | ||
images: string[]; | ||
}) => { | ||
return await authClient.post(`/api/v1/letters/drafts/${draftId}`, { | ||
content, | ||
receiverName, | ||
images | ||
}); | ||
}; | ||
|
||
// 임시 저장 삭제 | ||
export const deleteDraftLetter = async (draftId: string) => { | ||
return await authClient.delete(`/api/v1/letters/drafts/${draftId}`); | ||
}; | ||
|
||
// 임시 저장 키 발급 | ||
export const postDraftKey = async () => { | ||
return await authClient.post(`/api/v1/letters/drafts/key`); | ||
}; | ||
|
||
// 임시 저장 목록 조회 | ||
export const getDraftList = async () => { | ||
return await authClient.get(`/api/v1/letters/drafts`); | ||
}; | ||
|
||
// 임시 저장 조회 | ||
export const getDraftLetter = async (draftKey: string) => { | ||
return await authClient.get(`/api/v1/letters/drafts/${draftKey}`); | ||
}; | ||
|
||
// 임시 저장 개수 조회 | ||
export const getDraftCount = async () => { | ||
return await authClient.get(`/api/v1/letters/drafts/count`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { authClient } from '@/api/client'; | ||
|
||
// 실물 편지 임시 저장하기 | ||
export const postDraftPhysicalLetter = async ({ | ||
draftId, | ||
content, | ||
senderName, | ||
images | ||
}: { | ||
draftId: string; | ||
content: string; | ||
senderName: string; | ||
images: string[]; | ||
}) => { | ||
return await authClient.post(`/api/v1/letters/drafts/physical/${draftId}`, { | ||
content, | ||
senderName, | ||
images | ||
}); | ||
}; | ||
|
||
// 실물 편지 임시 저장 삭제 | ||
export const deleteDraftPhysicalLetter = async (draftId: string) => { | ||
return await authClient.delete(`/api/v1/letters/drafts/physical/${draftId}`); | ||
}; | ||
|
||
// 실물 편지 임시 저장 키 발급 | ||
export const postDraftPhysicalKey = async () => { | ||
return await authClient.post(`/api/v1/letters/drafts/physical/key`); | ||
}; | ||
|
||
// 실물 편지 임시 저장 목록 조회 | ||
export const getDraftPhysicalList = async () => { | ||
return await authClient.get(`/api/v1/letters/drafts/physical`); | ||
}; | ||
|
||
// 실물 편지 임시 저장 조회 | ||
export const getDraftPhysicalLetter = async (draftKey: string) => { | ||
return await authClient.get(`/api/v1/letters/drafts/physical/${draftKey}`); | ||
}; | ||
|
||
// 실물 편지 임시 저장 개수 조회 | ||
export const getDraftPhysicalCount = async () => { | ||
return await authClient.get(`/api/v1/letters/drafts/physical/count`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.