|
|
@@ -7,6 +7,7 @@ import lombok.experimental.Accessors;
|
|
|
import org.springframework.data.annotation.Id;
|
|
|
import org.springframework.data.mongodb.core.mapping.Field;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
@@ -52,5 +53,14 @@ public class DevcloudInfo {
|
|
|
@Field("treeNode_list")
|
|
|
private List<TreeNodeInfo> treeNodeList;
|
|
|
|
|
|
+ //输入项目号进行初始化
|
|
|
+ public DevcloudInfo(Integer projectId){
|
|
|
+ this.projectId = projectId;
|
|
|
+ this.bugList = new ArrayList<>();
|
|
|
+ this.commitList = new ArrayList<>();
|
|
|
+ this.testList = new ArrayList<>();
|
|
|
+ this.pipelineList = new ArrayList<>();
|
|
|
+ this.treeNodeList = new ArrayList<>();
|
|
|
+ }
|
|
|
|
|
|
}
|