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

Notice 도메인 개선 #128

Merged
merged 25 commits into from
Apr 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
11d81a5
:recycle: refactor: 컨트롤러 분리
akalswl14 Apr 20, 2023
60ac2d9
:recycle: refactor: Dto 네이밍 변경, 생성자 개선
akalswl14 Apr 20, 2023
72e3c17
:recycle: refactor: 각 서비스 분리 및 Inbound Port 추가
akalswl14 Apr 20, 2023
27b0363
:recycle: refactor: Notice Outbound Port, Persistence Adapter 추가
akalswl14 Apr 20, 2023
62ad32e
:recycle: refactor: Repository 이동
akalswl14 Apr 20, 2023
a205062
:recycle: refactor: 필요없는 메소드 삭제
akalswl14 Apr 20, 2023
058082a
:recycle: refactor: Repository를 사용해서 메소드 로직 구현, 리턴 타입 변경
akalswl14 Apr 20, 2023
9918cb9
:recycle: refactor: 각 서비스에서 포트를 사용하여 로직을 구성하도록 구현
akalswl14 Apr 20, 2023
baca62f
:recycle: refactor: 컨트롤러가 UseCase 인터페이스를 사용하도록 변경
akalswl14 Apr 20, 2023
abdc791
:recycle: refactor: 서비스 제거
akalswl14 Apr 20, 2023
eadbedc
:recycle: refactor: 도메인 모델에 관한 예외는 도메인 패키지로 분류함
akalswl14 Apr 20, 2023
72f8eee
:recycle: refactor: Notice 상세 조회시, Port 단계에서 예외를 던지도록 수정
akalswl14 Apr 20, 2023
48b8635
:recycle: refactor: Notice Controller 테스트 추가
akalswl14 Apr 20, 2023
cf7ad14
:recycle: refactor: Notice Adapter Test를 위한 SQL 파일 추가
akalswl14 Apr 20, 2023
9e114fa
:recycle: refactor: Notice Adapter Test추가
akalswl14 Apr 20, 2023
43f9124
:recycle: refactor: 서비스 테스트 추가
akalswl14 Apr 20, 2023
6c18624
:recycle: refactor: 기존 서비스 테스트 제거
akalswl14 Apr 20, 2023
0ee24e6
:recycle: refactor: 접근 제어자 수정
akalswl14 Apr 21, 2023
63e2e5b
:recycle: refactor: Controller에 @WebAdapter 어노테이션 추가
akalswl14 Apr 21, 2023
a57e734
:recycle: refactor: 접근 제어자 수정
akalswl14 Apr 22, 2023
eafd3e3
:recycle: refactor: 불필요한 공백 제거
akalswl14 Apr 22, 2023
55804c5
:art: refactor: WebAdapter 커스텀 어노테이션이 RestController역할을 하도록 수정
akalswl14 Apr 22, 2023
e3b6755
:recycle: refactor: 불필요한 @Respository 어노테이션 제거
akalswl14 Apr 24, 2023
ad0c4f0
:recycle: refactor: 읽기 전용 공지 조회 서비스에 @Transactional(readOnly = true) 추가
akalswl14 Apr 24, 2023
e4f59f9
:recycle: refactor: Validation 추가
akalswl14 Apr 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/com/yapp/artie/domain/notice/domain/Notice.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -20,12 +22,14 @@ public class Notice {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@NotBlank
@Column(nullable = false)
private String title;

@Column(columnDefinition = "text")
private String contents;

@NotNull
@Column(nullable = false, updatable = false)
@CreatedDate
private LocalDateTime createdAt;
le2sky marked this conversation as resolved.
Show resolved Hide resolved
Expand Down