-
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.
- Loading branch information
1 parent
2f806d6
commit f791970
Showing
4 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
Submodule 2024-WELLET-client
added at
95e936
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,29 +1,29 @@ | ||
import { authAxios } from '../axios'; | ||
|
||
// 전체 명함 조회 | ||
export const getCards = async ({ member_id }) => { | ||
const response = await authAxios.get(`/cards/${member_id}`); | ||
// console.log(response.data.result); | ||
return response; | ||
export const getCardList = async ({ member_id }) => { | ||
const { data } = await authAxios.get(`/cards/${member_id}`); | ||
|
||
return data; | ||
}; | ||
|
||
// 명함 생성 | ||
export const postCards = async ({ member_id, data }) => { | ||
const response = await authAxios.post(`/cards/${member_id}`, data); | ||
// console.log(response); | ||
return response; | ||
export const postCard = async ({ member_id, data }) => { | ||
const { data } = await authAxios.post(`/cards/${member_id}`, data); | ||
|
||
return data; | ||
}; | ||
|
||
// 명함 삭제 | ||
export const deleteCards = async ({ card_id }) => { | ||
const response = await authAxios.delete(`/cards/${card_id}`); | ||
// console.log(response); | ||
return response; | ||
export const deleteCard = async ({ card_id }) => { | ||
const { data } = await authAxios.delete(`/cards/${card_id}`); | ||
|
||
return data; | ||
}; | ||
|
||
// 명함 수정 | ||
export const putCards = async ({ card_id, data }) => { | ||
const response = await authAxios.put(`/cards/${card_id}`, data); | ||
// console.log(response); | ||
return response; | ||
export const putCard = async ({ card_id, data }) => { | ||
const { data } = await authAxios.put(`/cards/${card_id}`, data); | ||
|
||
return 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export { getGroupList } from './group'; | ||
export * from './group'; | ||
export * from './cards'; | ||
export * from './myCard'; |
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