-
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 remote-tracking branch 'origin/main' into feat/#116
- Loading branch information
Showing
8 changed files
with
263 additions
and
50 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
24 changes: 24 additions & 0 deletions
24
backend/src/main/java/crepe/backend/domain/branch/dto/MergeResourceInfo.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,24 @@ | ||
package crepe.backend.domain.branch.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class MergeResourceInfo { | ||
|
||
private String name; | ||
private String link; | ||
private boolean isDuplicated; | ||
|
||
private boolean isNew; | ||
|
||
@Builder | ||
public MergeResourceInfo(String name, String link, boolean isDuplicated, boolean isNew) { | ||
this.name = name; | ||
this.link = link; | ||
this.isDuplicated = isDuplicated; | ||
this.isNew = isNew; //새로 추가된-변경된 파일인가 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
backend/src/main/java/crepe/backend/domain/branch/dto/MergeResourceInfoList.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 crepe.backend.domain.branch.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class MergeResourceInfoList { | ||
List<MergeResourceInfo> mergeResourceInfos = new ArrayList<>(); | ||
|
||
public void addAllMergeResourceInfo(List<MergeResourceInfo> mergeResourceInfos) | ||
{ | ||
this.mergeResourceInfos.addAll(mergeResourceInfos); | ||
} | ||
|
||
public void addMergeResourceInfo(MergeResourceInfo mergeResourceInfo) | ||
{ | ||
this.mergeResourceInfos.add(mergeResourceInfo); | ||
} | ||
} |
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.