-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature: 공지사항 조회 #20
The head ref may contain hidden characters: "19-feature-\uACF5\uC9C0\uC0AC\uD56D-\uC870\uD68C"
feature: 공지사항 조회 #20
Conversation
3850b37
to
1273b66
Compare
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.
너무 깔끔해서 리뷰할만한 것이 없군요!
고생하셨습니다 😎
@CreatedDate | ||
val createAt: LocalDateTime = LocalDateTime.now(), // TODO: BaseEntity 상속 | ||
|
||
@LastModifiedDate | ||
val updateAt: LocalDateTime = LocalDateTime.now(), // TODO: BaseEntity 상속 |
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.
이거 적용하실 수 있지 않나요?
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.
헉 cherrypick만 하고 누락되었네요..! 수정하겠습니다~!
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.
62c298e
반영 완료!
@@ -1,6 +1,5 @@ | |||
package com.petqua.application | |||
package com.petqua.application.product |
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.
헉쓰 놓쳤네요 이동 감사합니다
this.beforeTest { | ||
RestAssured.port = this.port | ||
} | ||
|
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.
오호 이전이랑 무슨 차이가 있나요??
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.
이전에는 port라는 변수에 값만 설정하고, port를 사용하진 않았었는데요
protected val port: Int = RestAssured.port
@SpringBooTest에서 RandomPort로 하니까 RestAssured.port 값이 이전과 동일해서 connection 안되더라고요.
@LocalServerPort로 SpringContext마다 할당된 randomPort를 RestAssured.port로 지정하였습니다!
Int 타입이라 Lateinit이 안되어서 기본값을 하나 두었어요!
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.
너모 멋져요...!
@Transactional | ||
@Service | ||
class AnnouncementService( | ||
private val announcementRepository: AnnouncementRepository, | ||
) { | ||
|
||
@Cacheable("announcements") | ||
@Transactional(readOnly = true) | ||
fun readAll(): List<AnnouncementResponse> { | ||
val announcements = announcementRepository.findAll() | ||
return announcements.map { AnnouncementResponse.from(it) } | ||
} | ||
} |
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.
깔끔하네요~~
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.
깔꼼합니다...👍
* feat: Announcement 도메인 추가 * feat: Announcement 조회 로직 추가 * feat: Announcement 조회 API 추가 * style: method, dto naming 수정 * test: 공지사항 조회 api test 추가 * refactor: 불필요한 응답 필드 제거 * test: test 패키지 이동 * test: ProductControllerTest에 ApiTestConfig 적용 * refactor: BaseEntity 적용
* feat: Announcement 도메인 추가 * feat: Announcement 조회 로직 추가 * feat: Announcement 조회 API 추가 * style: method, dto naming 수정 * test: 공지사항 조회 api test 추가 * refactor: 불필요한 응답 필드 제거 * test: test 패키지 이동 * test: ProductControllerTest에 ApiTestConfig 적용 * refactor: BaseEntity 적용
* feat: Announcement 도메인 추가 * feat: Announcement 조회 로직 추가 * feat: Announcement 조회 API 추가 * style: method, dto naming 수정 * test: 공지사항 조회 api test 추가 * refactor: 불필요한 응답 필드 제거 * test: test 패키지 이동 * test: ProductControllerTest에 ApiTestConfig 적용 * refactor: BaseEntity 적용
* feat: Announcement 도메인 추가 * feat: Announcement 조회 로직 추가 * feat: Announcement 조회 API 추가 * style: method, dto naming 수정 * test: 공지사항 조회 api test 추가 * refactor: 불필요한 응답 필드 제거 * test: test 패키지 이동 * test: ProductControllerTest에 ApiTestConfig 적용 * refactor: BaseEntity 적용
* feat: OauthClient 생성 * feat: KakaoOauthClient 생성 * feat: OauthService 생성 * feat: OauthController 생성 * refactor: OauthController URI 변경 * refactor: 공백 라인 추가 * feat: OauthClientException 추가 * refactor: OauthClient 인터페이스에 requestToken 메서드 추가 * refactor: OauthUserInfo를 data class로 변경 * refactor: 사용하지 않는 필드 제거 * chore: 패키지 분리 및 코드 포맷 수정 * chore: 코드 포맷 수정 * feat: JWTProvider 생성 * feat: OauthClientExceptionType을 주입받게 변경 * chore: 어노테이션 순서 변경 * feat: OauthServerType에 필드 추가 * feat: Member 생성 * feat: AuthToken, AuthTokenProvider 생성 * refactor: 클래스명 변경 * feat: OAuth 로그인 기능 구현 * feat: refreshToken 설정 추가 * refactor: 패키지 이름 변경 * refactor: KakaoOauthProperties 위치 변경 * feature: 공지사항 조회 (#20) * refactor: 토큰 발급 날짜를 인자로 받게 변경 * test: OauthController 테스트 추가 * test: OauthService 테스트 추가 * test: AuthTokenProvider 테스트 추가 * chore: 중복 주석 삭제 * chore: 사용하지 않는 코드 삭제 * feat: AuthCode 요청 리다이렉트 기능 추가 * refactor: AccessTokenClaims를 사용한 토큰 생성 기능 추가 * refactor: 토큰 복호화시 AccessTokenClaims 형태로 반환하게 변경 * feat: 멤버의 Authority 생성 * refactor: AuthException 이름 변경 및 예외 타입 추가 * feat: 멤버 접근 권한 검증 로직 추가 * refactor: 패키지 분리 * refactor: 인덱싱 오퍼레이터로 변경 * feature: cors 관련 설정을 추가한다 (#24) * chore: test 프로퍼티 설정 추가 * chore: 코드 스타일 적용 * refactor: 패키지 이동 * refactor: 트랜잭셔널 추가
📌 관련 이슈
📁 작업 설명
기타
- on #18