提交修改
This commit is contained in:
parent
ceeb32332c
commit
6a06070eb0
@ -86,7 +86,12 @@ public class ThirdTaskController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
List<ResultDto> resultDtos = new ArrayList<>();
|
||||||
|
ResultDto resultDto1 = new ResultDto(0,10l,"哈哈0");
|
||||||
|
ResultDto resultDto2 = new ResultDto(1,11l,"哈哈1");
|
||||||
|
ResultDto resultDto3 = new ResultDto(2,12l,"哈哈2");
|
||||||
|
ResultDto resultDto4 = new ResultDto(3,13l,"哈哈3");
|
||||||
|
ResultDto [] array = new ResultDto[]{resultDto1,resultDto2,resultDto3,resultDto4};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5,11 +5,19 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ResultDto {
|
public class ResultDto {
|
||||||
@TaskHeader("索引")
|
@TaskHeader("index")
|
||||||
private int index;
|
private int index;
|
||||||
@TaskHeader("Id")
|
@TaskHeader("id")
|
||||||
private Long id;
|
private Long id;
|
||||||
@TaskHeader("内容")
|
@TaskHeader("内容")
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
|
public ResultDto() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ResultDto(@TaskHeader("索引") int index, @TaskHeader("Id") Long id, @TaskHeader("内容") String content) {
|
||||||
|
this.index = index;
|
||||||
|
this.id = id;
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user