-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [rename] 인가 관련 API 컨트롤러 위치 이동(MemberController -> AuthController) * [test] : 인가 관련 API 컨트롤러 위치 이동으로 인한 테스트 코드 위치 변경 * [feat] : 임시 로그인 API 이메일 Valid 추가 * [test] : 사용자 프로필 조회 TDD * [rename] : 패키지 위치 변경 * [fix] : ResponseDTO 필드명 오탈자 수정으로 인한 테스트 코드 수정 * [feat] : 회원 프로필 조회 응답 DTO 추가 * [feat] : MemberMapper(DTO <-> Entity) 추가 * [feat] : 회원 프로필 조회 API 추가 * [rename] : 정적 메서드 네이밍 변경(of -> from) * [feat] : MemberErrorCode 프로필 수정 에러코드 추가 * [feat] : 공무원 이메일이 일치하는 회원 반환 쿼리 메서드 추가 * [feat] : 사용자 프로필 수정 API 로직 추가 * [test] : 사용자 프로필 수정 단위 테스트 추가 * [test] : 사용자 프로필 조회/수정 컨트롤러 통합 테스트 추가 * [feat] : 프로필 조회 시 트랜잭션 읽기 전용 설정 추가 * [rename] : 프로필 수정 API 파라티터 변수 네이밍 변경 * [test] : 프로필 조회/수정 API 테스트 성공 확인 데이터 정확도를 위한 수정 * [rename] : 리뷰에 따른 네이밍 수정
- Loading branch information
Showing
16 changed files
with
373 additions
and
139 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/java/com/dnd/gongmuin/auth/dto/TempLoginRequest.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.dnd.gongmuin.auth.dto; | ||
|
||
import jakarta.validation.constraints.Email; | ||
|
||
public record TempLoginRequest( | ||
|
||
String socialName, | ||
|
||
String socialEmail | ||
|
||
) { | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/dnd/gongmuin/member/dto/MemberMapper.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.dnd.gongmuin.member.dto; | ||
|
||
import com.dnd.gongmuin.member.domain.Member; | ||
import com.dnd.gongmuin.member.dto.response.MemberProfileResponse; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class MemberMapper { | ||
|
||
public static MemberProfileResponse toMemberProfileResponse(Member member) { | ||
return new MemberProfileResponse( | ||
member.getNickname(), | ||
member.getJobGroup().getLabel(), | ||
member.getJobCategory().getLabel(), | ||
member.getCredit() | ||
); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/dnd/gongmuin/member/dto/request/UpdateMemberProfileRequest.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.dnd.gongmuin.member.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record UpdateMemberProfileRequest( | ||
|
||
@NotBlank(message = "닉네임은 필수 입력 항목입니다.") | ||
@Size(min = 2, max = 12, message = "닉네임은 최소 2자리 이상 최대 12자 이하입니다.") | ||
String nickname, | ||
|
||
@NotBlank(message = "직군은 필수 입력 항목입니다.") | ||
String jobGroup, | ||
|
||
@NotBlank(message = "직렬은 필수 입력 항목입니다.") | ||
String jobCategory | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/dnd/gongmuin/member/dto/response/MemberProfileResponse.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
public record MemberProfileResponse( | ||
String nickname, | ||
String jobGroup, | ||
String jobCategory, | ||
int credit | ||
) { | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.