-
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.
Merge branch 'main' into fix/#39/api-성공-메시지-수정
- Loading branch information
Showing
7 changed files
with
66 additions
and
7 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/tave/tavewebsite/domain/member/controller/SuccessMessage.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.tave.tavewebsite.domain.member.controller; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum SuccessMessage { | ||
UNAUTHORIZED_MEMBER_READ("승인 대기 중인 운영진을 조회했습니다."), | ||
AUTHORIZED_MEMBER_READ("승인된 운영진을 조회했습니다."), | ||
MANAGER_DELETE("해당 운영진을 삭제했습니다."); | ||
|
||
private final String message; | ||
|
||
public String getMessage(String generation) { | ||
return generation +" " + message; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/tave/tavewebsite/domain/member/exception/NotManagerAccessException.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 com.tave.tavewebsite.domain.member.exception; | ||
|
||
import com.tave.tavewebsite.global.exception.BaseErrorException; | ||
|
||
import static com.tave.tavewebsite.domain.member.exception.ErrorMessage.NOT_MANAGER; | ||
|
||
public class NotManagerAccessException extends BaseErrorException { | ||
public NotManagerAccessException() { | ||
super(NOT_MANAGER.getCode(), NOT_MANAGER.getMessage()); | ||
|
||
} | ||
} |
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