-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from mujik-tigers/test/refactor-user
refactor: 대규모 로직 변경
- Loading branch information
Showing
46 changed files
with
1,033 additions
and
866 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,107 @@ | ||
[[User-API]] | ||
== User API | ||
|
||
[[update-nickname-success]] | ||
[[change-nickname-success]] | ||
=== 닉네임 변경 성공 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/update-nickname-success/http-request.adoc[] | ||
include::{snippets}/update-nickname-success/request-fields.adoc[] | ||
include::{snippets}/change-nickname-success/http-request.adoc[] | ||
include::{snippets}/change-nickname-success/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/update-nickname-success/http-response.adoc[] | ||
include::{snippets}/update-nickname-success/response-fields.adoc[] | ||
include::{snippets}/change-nickname-success/http-response.adoc[] | ||
include::{snippets}/change-nickname-success/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[update-nickname-fail]] | ||
[[change-nickname-fail]] | ||
=== 닉네임 변경 실패: 요청 데이터 오류가 발생했습니다 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/update-nickname-fail/http-request.adoc[] | ||
include::{snippets}/update-nickname-fail/request-fields.adoc[] | ||
include::{snippets}/change-nickname-fail/http-request.adoc[] | ||
include::{snippets}/change-nickname-fail/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/update-nickname-fail/http-response.adoc[] | ||
include::{snippets}/update-nickname-fail/response-fields.adoc[] | ||
include::{snippets}/change-nickname-fail/http-response.adoc[] | ||
include::{snippets}/change-nickname-fail/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[change-participant-role-success]] | ||
[[change-role-success]] | ||
=== 다른 유저의 역할 변경 성공 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/change-participant-role-success/http-request.adoc[] | ||
include::{snippets}/change-participant-role-success/request-fields.adoc[] | ||
include::{snippets}/change-role-success/http-request.adoc[] | ||
include::{snippets}/change-role-success/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/change-participant-role-success/http-response.adoc[] | ||
include::{snippets}/change-participant-role-success/response-fields.adoc[] | ||
include::{snippets}/change-role-success/http-response.adoc[] | ||
include::{snippets}/change-role-success/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[change-self-role-fail]] | ||
=== 다른 유저의 역할 변경 실패: 자신의 역할을 변경할 수 없다 | ||
[[change-role-fail-self]] | ||
=== 다른 유저의 역할 변경 실패: 자신의 역할은 변경할 수 없습니다 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/change-self-role-fail/http-request.adoc[] | ||
include::{snippets}/change-self-role-fail/request-fields.adoc[] | ||
include::{snippets}/change-role-fail-self/http-request.adoc[] | ||
include::{snippets}/change-role-fail-self/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/change-self-role-fail/http-response.adoc[] | ||
include::{snippets}/change-self-role-fail/response-fields.adoc[] | ||
include::{snippets}/change-role-fail-self/http-response.adoc[] | ||
include::{snippets}/change-role-fail-self/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[change-higher-or-equal-user-role-fail]] | ||
=== 다른 유저의 역할 변경 실패: 자신보다 낮은 역할을 가진 유저의 역할만 변경할 수 있다 | ||
[[change-role-fail-equal-or-higher-user]] | ||
=== 다른 유저의 역할 변경 실패: 자신과 동등하거나 높은 단계의 유저에 대한 역할을 변경할 수 없습니다 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/change-higher-or-equal-user-role-fail/http-request.adoc[] | ||
include::{snippets}/change-higher-or-equal-user-role-fail/request-fields.adoc[] | ||
include::{snippets}/change-role-fail-equal-or-higher-user/http-request.adoc[] | ||
include::{snippets}/change-role-fail-equal-or-higher-user/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/change-higher-or-equal-user-role-fail/http-response.adoc[] | ||
include::{snippets}/change-higher-or-equal-user-role-fail/response-fields.adoc[] | ||
include::{snippets}/change-role-fail-equal-or-higher-user/http-response.adoc[] | ||
include::{snippets}/change-role-fail-equal-or-higher-user/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[change-higher-or-equal-role-fail]] | ||
=== 다른 유저의 역할 변경 실패: 자신보다 낮은 역할로의 변경만 가능하다 | ||
[[change-role-fail-higher-role]] | ||
=== 다른 유저의 역할 변경 실패: 자신의 역할보다 높은 단계의 역할로 변경할 수 없습니다 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/change-higher-or-equal-role-fail/http-request.adoc[] | ||
include::{snippets}/change-higher-or-equal-role-fail/request-fields.adoc[] | ||
include::{snippets}/change-role-fail-higher-role/http-request.adoc[] | ||
include::{snippets}/change-role-fail-higher-role/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/change-higher-or-equal-role-fail/http-response.adoc[] | ||
include::{snippets}/change-higher-or-equal-role-fail/response-fields.adoc[] | ||
include::{snippets}/change-role-fail-higher-role/http-response.adoc[] | ||
include::{snippets}/change-role-fail-higher-role/response-fields.adoc[] | ||
|
||
{nbsp} | ||
|
||
[[not-manageable-change-role-fail]] | ||
=== 다른 유저의 역할 변경 실패: 매니저 등급보다 낮은 역할의 유저는 다른 유저의 역할을 변경할 수 없다 | ||
[[change-role-fail-not-manageable-user]] | ||
=== 다른 유저의 역할 변경 실패: MANAGER보다 낮은 단계의 유저는 다른 유저의 역할을 변경할 수 없습니다 | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/not-manageable-role-fail/http-request.adoc[] | ||
include::{snippets}/not-manageable-role-fail/request-fields.adoc[] | ||
include::{snippets}/change-role-fail-not-manageable-user/http-request.adoc[] | ||
include::{snippets}/change-role-fail-not-manageable-user/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/not-manageable-role-fail/http-response.adoc[] | ||
include::{snippets}/not-manageable-role-fail/response-fields.adoc[] | ||
include::{snippets}/change-role-fail-not-manageable-user/http-response.adoc[] | ||
include::{snippets}/change-role-fail-not-manageable-user/response-fields.adoc[] | ||
|
||
{nbsp} |
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
19 changes: 19 additions & 0 deletions
19
src/main/java/site/youtogether/config/property/CookieProperties.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,19 @@ | ||
package site.youtogether.config.property; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@ConfigurationProperties("cookie") | ||
@RequiredArgsConstructor | ||
@Getter | ||
public class CookieProperties { | ||
|
||
private final String name; | ||
private final String domain; | ||
private final String path; | ||
private final String sameSite; | ||
private final int expiry; | ||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/site/youtogether/exception/cookie/CookieNoExistenceException.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,12 @@ | ||
package site.youtogether.exception.cookie; | ||
|
||
import site.youtogether.exception.CustomException; | ||
import site.youtogether.exception.ErrorType; | ||
|
||
public class CookieNoExistenceException extends CustomException { | ||
|
||
public CookieNoExistenceException() { | ||
super(ErrorType.COOKIE_NO_EXISTENCE); | ||
} | ||
|
||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/site/youtogether/exception/jwt/AuthorizationHeaderNoExistenceException.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/site/youtogether/exception/room/RoomEmptyException.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/java/site/youtogether/exception/room/UserAbsentException.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,12 @@ | ||
package site.youtogether.exception.room; | ||
|
||
import site.youtogether.exception.CustomException; | ||
import site.youtogether.exception.ErrorType; | ||
|
||
public class UserAbsentException extends CustomException { | ||
|
||
public UserAbsentException() { | ||
super(ErrorType.USER_ABSENT); | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/site/youtogether/exception/user/UsersInDifferentRoomException.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,12 @@ | ||
package site.youtogether.exception.user; | ||
|
||
import site.youtogether.exception.CustomException; | ||
import site.youtogether.exception.ErrorType; | ||
|
||
public class UsersInDifferentRoomException extends CustomException { | ||
|
||
public UsersInDifferentRoomException() { | ||
super(ErrorType.USERS_IN_DIFFERENT_ROOM); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
public enum MessageType { | ||
|
||
CHAT, PARTICIPANTS_INFO, ROOM_TITLE | ||
CHAT, PARTICIPANTS, ROOM_TITLE | ||
|
||
} |
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.