-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 홈 화면 API 연동 #57
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
41c18ab
feat: 로그인할 때 저장되는 유저 정보에 테스트 여부 추가 (#46)
AAminha a2a8d70
Merge branch 'develop' of https://github.com/KUSITMS-29th-TEAM-D/Fron…
AAminha 75d9389
feat: 유저 상태에 따라 홈 화면이 다르게 구성되도록 구현 (#46)
AAminha 2a4078c
fix: TopNavigation 모바일 버전 수정 및 상황에 따라 보여지는 뷰 다르게 구현 (#46)
AAminha 7978627
fix: 특정 페이지만 foot가 보이도록 수정 ("#46)
AAminha 3312ae4
design: 모바일 뷰 디자인 수정 (#46)
AAminha 7492485
fix: 특정 페이지에서 메뉴 아이콘 안보이도록 수정 (#46)
AAminha d725f08
Merge branch 'develop' of https://github.com/KUSITMS-29th-TEAM-D/Fron…
AAminha f6acdb5
fix: DiagnoseSection 연결 path 수정 (#46)
AAminha db7ef99
fix: API 결과값에 맞게 수정 (#46)
AAminha f09e366
feat: SelectAmountModal 컴포넌트 구현 (#46)
AAminha e116438
fix: QA 반영
AAminha 118f074
feat: NonTesterMemberView 수정 중 코드 참고를 위한 커밋 (#46)
AAminha d80108d
fix: API response 형식에 맞춰 RecommendSectionTemplate 수정 (#46)
AAminha 914b983
fix: NonMemberView API 연동에 맞춰 수정 (#46)
AAminha 9b06f16
fix: PreviewCard 컴포넌트 hot props 삭제 (#46)
AAminha 0b274a7
design: DropdownContent 스크롤 속성 수정 (#46)
AAminha 0412d51
feat: 홈 화면에 필요한 상수 추가 및 관련 타입 추가 (#46)
AAminha befffb3
feat: useDebounce 구현 및 프로그램 조회 관련 훅 구현 (#46)
AAminha bb100d3
feat: NonTesterMemberView API 연동 (#46)
AAminha f421b5a
fix: 최소금액보다 최대금액이 작을 경우 버튼 비활성화되도록 수정 (#46)
AAminha 5711a02
feat: TestMemberView API 연동 (#46)
AAminha 0ca1145
design: qa 수정 사항 반영
AAminha f7d07bc
style: qa 사항 반영
AAminha bc3fee6
feat: 브랜딩 프로그램 조회 (비로그인 ver) API 연동 및 잘못 연결된 API 교체 (#46)
AAminha 58411fd
feat: SideNavigation에 로그아웃 기능 구현 (#46)
AAminha 07c8dd0
Merge branch 'develop' of https://github.com/KUSITMS-29th-TEAM-D/Fron…
AAminha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { authClient, noAuthClient } from '@/apis/client'; | ||
|
||
export const programAPI = { | ||
// 메인 홈 자기이해 프로그램 조회 | ||
getUnderstanding: async (start: number, end: number, programForm: string) => { | ||
const requestInformation = { | ||
startPrice: start, | ||
endPrice: end === 0 ? null : end, | ||
form: programForm.replace('·', ''), | ||
}; | ||
|
||
const response = await authClient.post( | ||
'/api/programs/home/self-understanding', | ||
requestInformation | ||
); | ||
return response.data; | ||
}, | ||
// 메인 홈 브랜딩 프로그램 조회 | ||
getBranding: async (interest: string[], imageKeywords: string[]) => { | ||
const requestInformation: { [key: string]: string[] } = {}; | ||
|
||
if (interest.length > 0) { | ||
requestInformation.interest = interest; | ||
} | ||
|
||
if (imageKeywords.length > 0) { | ||
requestInformation.imageKeywords = imageKeywords; | ||
} | ||
|
||
const response = await authClient.post('/api/programs/home/branding', requestInformation); | ||
return response.data; | ||
}, | ||
// 메인 홈 브랜딩 프로그램 조회 (비로그인) | ||
getBrandingNonLogin: async (interest: string[], imageKeywords: string[]) => { | ||
const requestInformation: { [key: string]: string[] } = {}; | ||
|
||
if (interest.length > 0) { | ||
requestInformation.interest = interest; | ||
} | ||
|
||
if (imageKeywords.length > 0) { | ||
requestInformation.imageKeywords = imageKeywords; | ||
} | ||
|
||
const response = await noAuthClient.post( | ||
'/api/programs/branding/non-login', | ||
requestInformation | ||
); | ||
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모달창 호출