-
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.
[BE/#31] Feat : 이슈 Open/Closed 하는 기능 API 구현
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 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
34 changes: 34 additions & 0 deletions
34
BE/src/main/java/com/codesquad/issuetracker/hamill/dto/request/UpdateStateOfIssueDto.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.codesquad.issuetracker.hamill.dto.request; | ||
|
||
import java.util.List; | ||
|
||
public class UpdateStateOfIssueDto { | ||
|
||
private Long userId; | ||
|
||
private List<Long> issueId; | ||
|
||
private boolean isOpened; | ||
|
||
private UpdateStateOfIssueDto(Long userId, List<Long> issueId, boolean isOpened) { | ||
this.userId = userId; | ||
this.issueId = issueId; | ||
this.isOpened = isOpened; | ||
} | ||
|
||
public static UpdateStateOfIssueDto of(Long userId, List<Long> issueId, boolean isOpened) { | ||
return new UpdateStateOfIssueDto(userId, issueId, isOpened); | ||
} | ||
|
||
public Long getUserId() { | ||
return userId; | ||
} | ||
|
||
public List<Long> getIssueId() { | ||
return issueId; | ||
} | ||
|
||
public boolean isOpened() { | ||
return isOpened; | ||
} | ||
} |
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