-
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 'develop' into feature/44
- Loading branch information
Showing
33 changed files
with
2,059 additions
and
222 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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/backend/blooming/goal/application/dto/UpdateGoalDto.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,23 @@ | ||
package com.backend.blooming.goal.application.dto; | ||
|
||
import com.backend.blooming.goal.presentation.dto.request.UpdateGoalRequest; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
public record UpdateGoalDto( | ||
String name, | ||
String memo, | ||
LocalDate endDate, | ||
List<Long> teamUserIds | ||
) { | ||
|
||
public static UpdateGoalDto from(final UpdateGoalRequest request) { | ||
return new UpdateGoalDto( | ||
request.name(), | ||
request.memo(), | ||
request.endDate(), | ||
request.teamUserIds() | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...in/java/com/backend/blooming/goal/application/exception/DeleteGoalForbiddenException.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.backend.blooming.goal.application.exception; | ||
|
||
import com.backend.blooming.exception.BloomingException; | ||
import com.backend.blooming.exception.ExceptionMessage; | ||
|
||
public class DeleteGoalForbiddenException extends BloomingException { | ||
|
||
public DeleteGoalForbiddenException() { | ||
super(ExceptionMessage.DELETE_GOAL_FORBIDDEN); | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
...in/java/com/backend/blooming/goal/application/exception/UpdateGoalForbiddenException.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,18 @@ | ||
package com.backend.blooming.goal.application.exception; | ||
|
||
import com.backend.blooming.exception.BloomingException; | ||
import com.backend.blooming.exception.ExceptionMessage; | ||
|
||
public class UpdateGoalForbiddenException extends BloomingException { | ||
|
||
private UpdateGoalForbiddenException(final ExceptionMessage exceptionMessage) { | ||
super(exceptionMessage); | ||
} | ||
|
||
public static class ForbiddenUserToUpdate extends UpdateGoalForbiddenException { | ||
|
||
public ForbiddenUserToUpdate() { | ||
super(ExceptionMessage.UPDATE_GOAL_FORBIDDEN); | ||
} | ||
} | ||
} |
Oops, something went wrong.