[IC2_BE] 최해혁 설문조사 서비스 과제#1
Open
hyuk12 wants to merge 30 commits into
Open
Conversation
<description> - Core, Survey, Response, Api 모듈 추가 - settings.gradle에 모듈 경로 설정 - 공통 종속성 및 기본 Gradle 설정 적용
<description> - Core, Survey, Response, Api 모듈 추가 - settings.gradle에 모듈 경로 설정 - 공통 종속성 및 기본 Gradle 설정 적용
<description> - Core, Survey, Response, Api 모듈 추가 - settings.gradle에 모듈 경로 설정 - 공통 종속성 및 기본 Gradle 설정 적용
…ect() for module configurations <description> - 정확하지 않던 메소드인 declare 대신 project 로 변경
… utilities <Description> - BaseEntity 추가 - 날짜 포맷 유틸 추가 - JPA Auditing 추가
[WIP] Core 모듈 기본 구조 및 공통 엔티티 설계 작업
<Description> - survey entity 추가 - question entity 추가
[WIP] Add Survey and Question domain entities for Survey Module
<Description> - survey dto 추가 - question dto 추가
chore: add survey, question request dto
<description> - 기존 모듈 구조를 약간 변경, - api 모듈에 존재하던 메인클래스를 루트 경로로 변경 - 작동 테스트 간단하게 완료
fix: 구조 변경 및 작동 테스트 완료
<description> - 기존에 root 경로에 main application 두었던 것 제거 - root build.gradle 에서 모든 모듈을 관리하는 것에서 따로 따로 하는 것으로 변경
<description> - survey 등록시 최대 10개의 질문 등록 가능 - 질문 등록시 타입에 따라서 choices 리스트 존재 - orderIndex 로 질문 순서 기억 - 필수 작성 질문 isRequired 로 구분
feat: survey 등록 api
- Survey 엔티티에 질문 추가 시 최대 orderIndex + 1로 설정하는 기능 추가
- 질문 삭제 및 추가 시 전체 질문 순서 재정렬 기능 (`reorderQuestions`) 구현
- 질문 순서를 명시적으로 지정할 수 있도록 `orderIndex` 처리 로직 개선
- Question의 순서 재배치 시, `@OrderBy("orderIndex ASC")`를 사용하여 정렬 상태 유지
업데이트 시 기존 질문의 순서를 명시적으로 변경할 수 있도록 로직을 개선하여
설문조사의 일관성을 유지하고, 질문의 순서가 중복되지 않도록 처리
- Survey 엔티티에 질문 추가 시 최대 orderIndex + 1로 설정하는 기능 추가
- 질문 삭제 및 추가 시 전체 질문 순서 재정렬 기능 (`reorderQuestions`) 구현
- 질문 순서를 명시적으로 지정할 수 있도록 `orderIndex` 처리 로직 개선
- Question의 순서 재배치 시, `@OrderBy("orderIndex ASC")`를 사용하여 정렬 상태 유지
업데이트 시 기존 질문의 순서를 명시적으로 변경할 수 있도록 로직을 개선하여
설문조사의 일관성을 유지하고, 질문의 순서가 중복되지 않도록 처리
Feat/survey
chore: add response
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Checklist
프로젝트 구조
멀티 모듈 구성
기술 스택
비고: Redis 를 써서 localhost:6379 로 레디스가 동작 중 이어야합니다.
core 모듈에 docker 패키지 내부에 docker-compose.yml 존재합니다.
API 문서 확인
Jar 파일
궁금한점.