-
Notifications
You must be signed in to change notification settings - Fork 4
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 #301 from linglong67/feature/washzone-review-api
[feat] 세차장 리뷰 기능 + 리뷰 기능 보완
- Loading branch information
Showing
23 changed files
with
885 additions
and
37 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 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
33 changes: 33 additions & 0 deletions
33
module-api/src/main/java/com/kernel360/washzonereview/code/WashzoneReviewBusinessCode.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,33 @@ | ||
package com.kernel360.washzonereview.code; | ||
|
||
import com.kernel360.code.BusinessCode; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
|
||
@RequiredArgsConstructor | ||
public enum WashzoneReviewBusinessCode implements BusinessCode { | ||
SUCCESS_GET_WASHZONE_REVIEWS(HttpStatus.OK.value(), "BWZRV001", "세차장 리뷰 목록 조회 성공"), | ||
SUCCESS_GET_WASHZONE_REVIEW(HttpStatus.OK.value(), "BWZRV002", "세차장 리뷰 단건 조회 성공"), | ||
SUCCESS_CREATE_WASHZONE_REVIEW(HttpStatus.OK.value(), "BWZRV003", "세차장 리뷰 등록 성공"), | ||
SUCCESS_UPDATE_WASHZONE_REVIEW(HttpStatus.OK.value(), "BWZRV004", "세차장 리뷰 수정 성공"), | ||
SUCCESS_DELETE_WASHZONE_REVIEW(HttpStatus.OK.value(), "BWZRV005", "세차장 리뷰 삭제 성공"); | ||
|
||
private final int status; | ||
private final String code; | ||
private final String message; | ||
|
||
@Override | ||
public int getStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String getCode() { | ||
return code; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return message; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
module-api/src/main/java/com/kernel360/washzonereview/code/WashzoneReviewErrorCode.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,34 @@ | ||
package com.kernel360.washzonereview.code; | ||
|
||
import com.kernel360.code.ErrorCode; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
|
||
@RequiredArgsConstructor | ||
public enum WashzoneReviewErrorCode implements ErrorCode { | ||
INVALID_STAR_RATING_VALUE(HttpStatus.BAD_REQUEST.value(), "EWZRV001", "유효하지 않은 별점입니다."), | ||
DUPLICATE_WASHZONE_REVIEW_EXISTS(HttpStatus.BAD_REQUEST.value(), "EWZRV002", "중복된 세차장 리뷰가 존재합니다."), | ||
NOT_FOUND_WASHZONE_REVIEW(HttpStatus.BAD_REQUEST.value(), "EWZRV003", "세차장 리뷰가 존재하지 않습니다."), | ||
NOT_FOUND_WASHZONE_FOR_WASHZONE_REVIEW_CREATION(HttpStatus.BAD_REQUEST.value(), "EWZRV004", "세차장이 존재하지 않습니다."), | ||
NOT_FOUND_MEMBER_FOR_WASHZONE_REVIEW_CREATION(HttpStatus.BAD_REQUEST.value(), "EWZRV005", "회원이 존재하지 않습니다."), | ||
MISMATCHED_MEMBER_NO_AND_ID(HttpStatus.BAD_REQUEST.value(), "ERV006", "회원 번호와 아이디가 일치하지 않습니다."); | ||
|
||
private final int status; | ||
private final String code; | ||
private final String message; | ||
|
||
@Override | ||
public int getStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String getCode() { | ||
return code; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return message; | ||
} | ||
} |
Oops, something went wrong.