Skip to content
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

master v0.4.1 (REFACTOR) #79

Merged
merged 40 commits into from
Dec 28, 2022
Merged

master v0.4.1 (REFACTOR) #79

merged 40 commits into from
Dec 28, 2022

Conversation

chhs2131
Copy link
Owner

@chhs2131 chhs2131 commented Dec 28, 2022

요약


주요내용

  • 시장 및 주식형태에 대한 Enum 클래스 추가 및 관리
  • ipo Service Layer에서 검증을 진행하고 예외를 발생시키도록 수정
    • controller에서 customException으로 핸들링진행
  • IPO Domain Logic 개선
    • IpoPaging 객체를 통해 페이징 관련 내용을 전달하도록 함
    • Comment Service 및 Mapper(with xml)를 별도로 생성하여 책임 분리 및 가독성 증대
    • 신규상장 CommentJson이 정상적으로 처리되지 못하던 문제 수정
    • 이제 ipo/schedule 없이 ipo api 호출시 옵션값을 설정하여 SCHEDULE을 조회할 수 있음

Enum 객체 사용시 null인지 우선 확인하도록 수정

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor/#72 - Enum 적용 (stockKinds, stockExchange)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
SQL Mapper를 통해 Optional 값을 반환하도록 하고 null일시 orElseThrow
IllegalStateException 발생

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor/#74 - 예외 발생 구문을 컨트롤러 -> 도메인으로
…페이징 조건값을 전달하도록 기존 로직을 대체
… 에러에 대한 처리 진행

- IllegalArgumentException 발생가능
- 해당 에러를 IG000(BadRequest)
CustomException으로 변환하여 사용자에게 노출
명절 및 최근과 같은 공모가 잘 없는 경우를 대비
중복기능제거: 해당기능은 이미 {ipo_index}/comment 에 존재함
- getter 추가
- 반환할 필요없는 값(haveTitle)에 JsonIgnore 추가
…로 분리

comment관련 기능들을 전부 commentService layer로 분리
…었던 문제 수정

- 신규등록일에는 '신규 등록 되었습니다.' 라는 title 문구만 표시하도록 수정
- 더 이상 targetDate를 sql에서 사용하지 않음 (startDate,endDate로 대체)

Closes #78

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor/#67 - ipo domain 로직 개선
@chhs2131 chhs2131 changed the title master v0.4.1 master v0.4.1 (REFACTOR) Dec 28, 2022
@chhs2131 chhs2131 merged commit a62ffa9 into master Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant