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

#42 feat: 출석일정 admin 도메인 구현 #43

Merged
merged 37 commits into from
Jul 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5271a4c
feat: 출석 일정을 생성하는 어드민 컨트롤러 생성
hyxklee Jul 20, 2024
306c67c
feat: 출석 일정을 생성을 위한 DTO
hyxklee Jul 20, 2024
f3c73d8
feat: 출석 일정을 생성을 위한 서비스 로직 구현
hyxklee Jul 20, 2024
ec94a90
feat: 출석 일정을 생성을 위한 매퍼 구현
hyxklee Jul 20, 2024
03b6a8c
feat: 출석 일정을 생성 메시지 상수 추가
hyxklee Jul 20, 2024
fdf1b72
feat: 타입 매칭 에러 추가
hyxklee Jul 20, 2024
734badd
refactor: 일정 생성시 type을 입력받지 않게 수정
hyxklee Jul 20, 2024
2ab92ed
feat: 타입 매칭 에러 추가
hyxklee Jul 20, 2024
dc4af7f
refactor: 캘린더에서 공지사항, 출석일정 수정시 예외를 다르게 처리
hyxklee Jul 20, 2024
251c233
refactor: 주석 추가
hyxklee Jul 20, 2024
b82f94e
refactor:불필요한 조회 로직 삭제
hyxklee Jul 20, 2024
54bc494
refactor: 이벤트 생성시 type을 이벤트로 고정
hyxklee Jul 20, 2024
f900d87
refactor: 이벤트 타입을 수정할 일은 없기 때문에 수정 로직에서 제외
hyxklee Jul 20, 2024
3e2f508
feat: 준비물, 총인원 변수 추가
hyxklee Jul 20, 2024
5fc1692
refactor: 변수 추가에 따른 매퍼 수정. 일단 null로
hyxklee Jul 20, 2024
22d6ae7
refactor: 스웨거 설정 추가
hyxklee Jul 20, 2024
26819e5
refactor: 출석일정 생성시 장소, 준비물, 총인원 모두 입력 받도록 변경
hyxklee Jul 20, 2024
202f2bb
refactor: 코드 가독성을 위해 변수명 축소
hyxklee Jul 20, 2024
f845d1e
refactor: 공지사항 수정시 startDateTime과 endDateTime은 수정되지 않도록 변경 -> 공지사항은 생…
hyxklee Jul 20, 2024
6307871
refactor: 변수명 수정
hyxklee Jul 20, 2024
0a1b0a3
refactor: 사용하지 않는 쿼리 삭제
hyxklee Jul 20, 2024
4aafe31
refactor: 변수명 수정, 정렬
hyxklee Jul 20, 2024
ea245da
refactor: 정렬 수정
hyxklee Jul 20, 2024
25f9766
refactor: 출석일정 생성시 장소, 준비물, 총인원을 입력 받도록 수정
hyxklee Jul 20, 2024
1fcb400
refactor: import문 최적화
hyxklee Jul 20, 2024
cbe3dfb
refactor: 정렬 최적화
hyxklee Jul 20, 2024
c96bb41
refactor: admin 권한 인증을 위한 엔드포인트 수정
hyxklee Jul 21, 2024
c1a6cfc
refactor: attendanceEventController 삭제 -> AdminController에 통합
hyxklee Jul 21, 2024
a2151bc
chore: attendanceEvent 경로 수정
hyxklee Jul 21, 2024
a7e695d
refactor: /admin 권한이 필요한 api는 adminController로 이동
hyxklee Jul 21, 2024
877e423
feat: /admin 권한이 필요한 요청을 수행하기 위한 adminController 추가
hyxklee Jul 21, 2024
cb1fa0d
feat: 날짜 입력 포맷이 일치하지 않을 때 발생하는 MethodArgumentTypeMismatchException에 해…
hyxklee Jul 21, 2024
65fd496
refactor: 상수 메시지 수정
hyxklee Jul 21, 2024
c50c389
refactor: 사용하지 않는 예외 날리기 삭제
hyxklee Jul 21, 2024
15aaef7
Merge branch 'refs/heads/main' into feature-#42
hyxklee Jul 22, 2024
2a8f164
fix: DB 초기화
hyxklee Jul 22, 2024
3882972
fix: DB 초기화
hyxklee Jul 22, 2024
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
Prev Previous commit
Next Next commit
feat: 타입 매칭 에러 추가
hyxklee committed Jul 20, 2024

Verified

This commit was signed with the committer’s verified signature.
commit fdf1b72b02862f885aff999dfe489ee0c7ea659a
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ public enum ExceptionType {
USER_NOT_MATCH(HttpStatus.BAD_REQUEST, UserNotMatchException.class),
NOTICE_NOT_FOUND(HttpStatus.BAD_REQUEST, NoticeNotFoundException.class),
EVENT_NOT_FOUND(HttpStatus.BAD_REQUEST, EventNotFoundException.class),
INVALID_INPUT_DATE(HttpStatus.BAD_REQUEST, InvalidInputDateException.class);
INVALID_INPUT_DATE(HttpStatus.BAD_REQUEST, InvalidInputDateException.class),
NOTICE_TYPE_NOT_MATCH(HttpStatus.BAD_REQUEST, NoticeTypeNotMatchException.class),
ATTENDANCE_EVENT_TYPE_NOT_MATCH(HttpStatus.BAD_REQUEST, AttendanceEventTypeNotMatchException.class);

private final HttpStatus httpStatus;
private final Class<? extends Exception> type;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package leets.weeth.global.common.error.exception.custom;

public class AttendanceEventTypeNotMatchException extends TypeNotMatchException{
public AttendanceEventTypeNotMatchException() {super("출석일정은 직접 수정할 수 없습니다.");}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

출석일정 직접 수정이 불가능하도록 상세하게 예외처리를 해준 부분이 좋습니다 !

Original file line number Diff line number Diff line change
@@ -2,4 +2,8 @@

public class TypeNotMatchException extends BusinessLogicException{
public TypeNotMatchException() {super("타입이 맞지 않습니다.(NOTICE, EVENT, ATTENDANCE)");}

public TypeNotMatchException(String message) {
super(message);
}
}