-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: hamcheeseburger <[email protected]> Co-authored-by: yangdongjue5510 <[email protected]>
- Loading branch information
1 parent
464c784
commit 69e84a4
Showing
12 changed files
with
160 additions
and
66 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
11 changes: 6 additions & 5 deletions
11
...src/main/java/com/woowacourse/f12/dto/request/inventoryproduct/ProfileProductRequest.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package com.woowacourse.f12.dto.request.inventoryproduct; | ||
|
||
import java.util.List; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ProfileProductRequest { | ||
|
||
private Long selectedInventoryProductId; | ||
private Long unselectedInventoryProductId; | ||
@NotNull(message = "등록할 대표장비가 없습니다.") | ||
private List<Long> selectedInventoryProductIds; | ||
|
||
private ProfileProductRequest() { | ||
} | ||
|
||
public ProfileProductRequest(final Long selectedInventoryProductId, final Long unselectedInventoryProductId) { | ||
this.selectedInventoryProductId = selectedInventoryProductId; | ||
this.unselectedInventoryProductId = unselectedInventoryProductId; | ||
public ProfileProductRequest(final List<Long> selectedInventoryProductIds) { | ||
this.selectedInventoryProductIds = selectedInventoryProductIds; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...d/src/main/java/com/woowacourse/f12/exception/internalserver/InternalServerException.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,11 @@ | ||
package com.woowacourse.f12.exception.internalserver; | ||
|
||
import com.woowacourse.f12.exception.CustomException; | ||
import com.woowacourse.f12.exception.ErrorCode; | ||
|
||
public class InternalServerException extends CustomException { | ||
|
||
public InternalServerException(final ErrorCode errorCode, final String message) { | ||
super(errorCode, message); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/src/main/java/com/woowacourse/f12/exception/internalserver/SqlUpdateException.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,10 @@ | ||
package com.woowacourse.f12.exception.internalserver; | ||
|
||
import com.woowacourse.f12.exception.ErrorCode; | ||
|
||
public class SqlUpdateException extends InternalServerException { | ||
|
||
public SqlUpdateException() { | ||
super(ErrorCode.INTERNAL_SERVER_ERROR, "요청된 업데이트 개수와 실행된 업데이트의 수가 다릅니다."); | ||
} | ||
} |
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
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.