forked from 9oormthonUniv-seoultech/PROJECT_TEAM_WEB_FE2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 9oormthonUniv-seoultech#57 from 9oormthonUniv-seou…
…ltech/develop 2차 배포 머지
- Loading branch information
Showing
48 changed files
with
948 additions
and
363 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
crossorigin | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.min.css" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> | ||
<title>포켓네컷</title> | ||
<script | ||
type="text/javascript" | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Get } from "."; | ||
import { MyReview } from "../@types/review"; | ||
|
||
export const getMyReviews = async (accessToken: string) => { | ||
try { | ||
const res = await Get<{ | ||
reviewCount: number; | ||
reviewMypageDetailDtoList: MyReview[]; | ||
}>("/api/v1/review/mypage", { | ||
headers: { | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
}); | ||
|
||
return res.data.payload; | ||
} catch (error) {} | ||
}; | ||
|
||
export const getVisitedBooths = async (accessToken: string) => { | ||
try { | ||
const res = await Get("/api/v1/photobooth/visited", { | ||
headers: { | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
}); | ||
|
||
return res.data.payload; | ||
} catch (error) {} | ||
}; |
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,35 @@ | ||
import { Post } from "./index.ts"; | ||
|
||
export const uploadPhoto = async ( | ||
accessToken: string, | ||
photoboothId: number, | ||
year: string, | ||
month: string, | ||
date: string, | ||
hashtag: string[], | ||
memo: string, | ||
filePath: string | ||
) => { | ||
try { | ||
const res = await Post( | ||
"/api/v1/album", | ||
{ | ||
photoboothId: photoboothId, | ||
year: year, | ||
month: month, | ||
date: date, | ||
hashtag: hashtag, | ||
memo: memo, | ||
filePath: filePath, | ||
}, | ||
{ | ||
headers: { | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
} | ||
); | ||
return res.data.result; | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; |
Oops, something went wrong.