-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
현재 검색 결과 화면에서 아래처럼 api를 쏘고 있음.
const sectionContent: SectionContent = await Promise.all([
isSectionVisible('소개', tag) ? searchAbout({ keyword, number: 3, amount: 200 }) : undefined,
isSectionVisible('소식', tag) ? searchNotice({ keyword, number: 3, amount: 200 }) : undefined,
isSectionVisible('소식', tag) ? searchNews({ keyword, number: 3, amount: 200 }) : undefined,
isSectionVisible('소식', tag) ? getSeminarPosts({ keyword, pageNum: '1' }) : undefined,
isSectionVisible('구성원', tag)
? searchMember({ keyword, number: 10, amount: 200 })
: undefined,
isSectionVisible('연구·교육', tag)
? searchResearch({ keyword, number: 3, amount: 200 })
: undefined,
isSectionVisible('입학', tag)
? searchAdmissions({ keyword, number: 3, amount: 200 })
: undefined,
isSectionVisible('학사 및 교과', tag)
? searchAcademics({ keyword, number: 3, amount: 200 })
: undefined,
]);
각 섹션마다 프론트에서 api를 쏘지 않고 하나의 api로 묶을 수 있을지 논의 필요
ChungPlusPlus