-
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 #13 from BbeumbungE/feat/BACK-68
Feat/back 68
- Loading branch information
Showing
14 changed files
with
288 additions
and
45 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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/siliconvalley/domain/item/item/code/ItemCode.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.siliconvalley.domain.item.item.code; | ||
|
||
import com.siliconvalley.global.common.code.ResponseCode; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public enum ItemCode implements ResponseCode { | ||
|
||
CREATE_SUCCESS(201, "아이템 생성에 성공했습니다.", HttpStatus.CREATED); | ||
|
||
private final int code; | ||
private final String message; | ||
private final HttpStatus httpStatus; | ||
|
||
ItemCode(int code, String message, HttpStatus httpStatus) { | ||
this.code = code; | ||
this.message = message; | ||
this.httpStatus = httpStatus; | ||
} | ||
|
||
@Override | ||
public int getCode() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public HttpStatus getHttpStatus() { | ||
return null; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/java/com/siliconvalley/domain/item/myitem/code/MyItemCode.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.siliconvalley.domain.item.myitem.code; | ||
|
||
import com.siliconvalley.global.common.code.ResponseCode; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public enum MyItemCode implements ResponseCode { | ||
|
||
CREATE_SUCCESS(201, "보유 아이템 생성에 성공했습니다.", HttpStatus.CREATED); | ||
|
||
private final int code; | ||
private final String message; | ||
private final HttpStatus httpStatus; | ||
|
||
MyItemCode(int code, String message, HttpStatus httpStatus) { | ||
this.code = code; | ||
this.message = message; | ||
this.httpStatus = httpStatus; | ||
} | ||
|
||
@Override | ||
public int getCode() { | ||
return this.code; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
@Override | ||
public HttpStatus getHttpStatus() { | ||
return this.httpStatus; | ||
} | ||
} |
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
src/main/java/com/siliconvalley/domain/item/subject/code/SketchCode.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.siliconvalley.domain.item.subject.code; | ||
|
||
import com.siliconvalley.global.common.code.ResponseCode; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public enum SketchCode implements ResponseCode { | ||
CREATE_SUCCESS(201, "스케치 생성에 성공했습니다.", HttpStatus.CREATED); | ||
|
||
private final int code; | ||
private final String message; | ||
private final HttpStatus httpStatus; | ||
|
||
SketchCode(int code, String message, HttpStatus httpStatus) { | ||
this.code = code; | ||
this.message = message; | ||
this.httpStatus = httpStatus; | ||
} | ||
|
||
@Override | ||
public int getCode() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public HttpStatus getHttpStatus() { | ||
return null; | ||
} | ||
} |
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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/siliconvalley/domain/point/code/PointCode.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.siliconvalley.domain.point.code; | ||
|
||
import com.siliconvalley.global.common.code.ResponseCode; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public enum PointCode implements ResponseCode { | ||
|
||
UPDATE_SUCCESS(204, "포인트 수정에 성공했습니다.", HttpStatus.NO_CONTENT); | ||
|
||
private final int code; | ||
private final String message; | ||
private final HttpStatus httpStatus; | ||
|
||
PointCode(int code, String message, HttpStatus httpStatus) { | ||
this.code = code; | ||
this.message = message; | ||
this.httpStatus = httpStatus; | ||
} | ||
|
||
@Override | ||
public int getCode() { | ||
return this.code; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
@Override | ||
public HttpStatus getHttpStatus() { | ||
return this.httpStatus; | ||
} | ||
} |
Oops, something went wrong.