-
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 branch 'main' into feature/admin
- Loading branch information
Showing
97 changed files
with
6,269 additions
and
367 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Oops, something went wrong.
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,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
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,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,138 @@ | ||
import axiosInstance from './axiosInstance'; | ||
|
||
export type MyPostType = { | ||
availableNumber: number; | ||
category: string; | ||
closeAt: null; | ||
communityPostId: number; | ||
createdAt: string; | ||
description: string; | ||
imageUrls: string[]; | ||
nickname: string; | ||
paymentDeadline: null; | ||
period: number; | ||
productUrl: string; | ||
status: string; | ||
title: string; | ||
totalAmount: number; | ||
unitAmount: number; | ||
userId: number; | ||
}; | ||
|
||
export type GroupPurchaseType = { | ||
communityPostId: number; | ||
title: string; | ||
totalAmount: number; | ||
description: string; | ||
productUrl: string; | ||
category: string; | ||
availableNumber: number; | ||
createdAt: string; | ||
period: number; | ||
closeAt: null; | ||
unitAmount: number; | ||
imageUrls: string[]; | ||
status: string; | ||
userId: number; | ||
nickname: string; | ||
paymentDeadline: null; | ||
}; | ||
|
||
export type OrderType = { | ||
delivery: null | string; | ||
productName: string; | ||
price: number; | ||
orderDate: string; | ||
paymentStatus: string; | ||
payment_key: null | string; | ||
price: number; | ||
productName: string; | ||
quantity: number; | ||
delivery: null | string; | ||
postId: number; | ||
url: string; | ||
}; | ||
|
||
export const postPasswordVerify = async (body: { currentPassword: string }) => { | ||
const response = await axiosInstance.post(`/mypage/verfiy`, body); | ||
const response = await axiosInstance.post(`/api/mypage/verify`, body); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const postPasswordChange = async (body: { newPassword: string }) => { | ||
const response = await axiosInstance.post(`/mypage/change`, body); | ||
const response = await axiosInstance.post(`/api/mypage/change`, body); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const postLocationChange = async (body: { newAddress: string }) => { | ||
const response = await axiosInstance.post(`/mypage/changeneighbor`, body); | ||
export const putLocationChange = async (body: { newAddress: string }) => { | ||
const response = await axiosInstance.put(`/api/mypage/changeneighbor`, body); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getOrderList = async () => { | ||
const response = await axiosInstance.get(`/mypage/orders`); | ||
const response = await axiosInstance.get(`/api/mypage/orders`); | ||
|
||
if (response.status !== 204) { | ||
return response.data; | ||
} else { | ||
return []; | ||
} | ||
}; | ||
|
||
export const getRefundList = async () => { | ||
const response = await axiosInstance.get(`/api/mypage/refund_orders`); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getUser = async () => { | ||
const response = await axiosInstance.get(`/api/mypage`); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getCommunity = async () => { | ||
const response = await axiosInstance.get(`/api/mypage/community`); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getMyPostList = async () => { | ||
const response = await axiosInstance.get(`/api/mypage/post`); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const deleteMyPost = async (id: string) => { | ||
const response = await axiosInstance.delete(`/api/mypage/post/${id}`); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const postProductCancel = async (body: { | ||
paymentKey: string; | ||
cancelReason: string; | ||
}) => { | ||
const response = await axiosInstance.post( | ||
`/api/v1/main-payments/cancel`, | ||
body | ||
); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const putEditProfile = async (file: File) => { | ||
const formData = new FormData(); | ||
|
||
formData.append('profile', file); | ||
const response = await axiosInstance.put( | ||
`/api/mypage/editprofile`, | ||
formData, | ||
{ | ||
headers: { | ||
'Content-Type': 'multipart/form-data', | ||
}, | ||
} | ||
); | ||
|
||
return response.data; | ||
}; |
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.