Commit 2d7e99e8507ec550c362be7bdf596c26f8531556
1 parent
4ecd0e51
fix #修改公共返回对象实现 Serializable 接口
Showing
5 changed files
with
10 additions
and
5 deletions
pom.xml
src/main/java/com/irrigation/icl/entity/PageList.java
| ... | ... | @@ -7,6 +7,7 @@ import lombok.AllArgsConstructor; |
| 7 | 7 | import lombok.Data; |
| 8 | 8 | import lombok.NoArgsConstructor; |
| 9 | 9 | |
| 10 | +import java.io.Serializable; | |
| 10 | 11 | import java.util.List; |
| 11 | 12 | |
| 12 | 13 | /** |
| ... | ... | @@ -19,7 +20,7 @@ import java.util.List; |
| 19 | 20 | @NoArgsConstructor |
| 20 | 21 | @AllArgsConstructor |
| 21 | 22 | @ApiModel(value = "PageList") |
| 22 | -public class PageList<E> { | |
| 23 | +public class PageList<E> implements Serializable { | |
| 23 | 24 | |
| 24 | 25 | @ApiModelProperty(value = "总页数") |
| 25 | 26 | private int pages; | ... | ... |
src/main/java/com/irrigation/icl/entity/PageParam.java
| ... | ... | @@ -6,6 +6,8 @@ import lombok.AllArgsConstructor; |
| 6 | 6 | import lombok.Data; |
| 7 | 7 | import lombok.NoArgsConstructor; |
| 8 | 8 | |
| 9 | +import java.io.Serializable; | |
| 10 | + | |
| 9 | 11 | /** |
| 10 | 12 | * @author zhangchuanxi |
| 11 | 13 | * @version 1.0.0 |
| ... | ... | @@ -15,7 +17,7 @@ import lombok.NoArgsConstructor; |
| 15 | 17 | @NoArgsConstructor |
| 16 | 18 | @AllArgsConstructor |
| 17 | 19 | @ApiModel(value = "PageParam") |
| 18 | -public class PageParam { | |
| 20 | +public class PageParam implements Serializable { | |
| 19 | 21 | |
| 20 | 22 | @ApiModelProperty(value = "当前页") |
| 21 | 23 | private Integer page = 1; | ... | ... |
src/main/java/com/irrigation/icl/entity/RestResult.java
| ... | ... | @@ -10,6 +10,8 @@ import lombok.AllArgsConstructor; |
| 10 | 10 | import lombok.Data; |
| 11 | 11 | import lombok.NoArgsConstructor; |
| 12 | 12 | |
| 13 | +import java.io.Serializable; | |
| 14 | + | |
| 13 | 15 | /** |
| 14 | 16 | * @param <T> |
| 15 | 17 | * @author zhangchuanxi |
| ... | ... | @@ -20,7 +22,7 @@ import lombok.NoArgsConstructor; |
| 20 | 22 | @AllArgsConstructor |
| 21 | 23 | @NoArgsConstructor |
| 22 | 24 | @ApiModel(value = "RestResult") |
| 23 | -public class RestResult<T> { | |
| 25 | +public class RestResult<T> implements Serializable { | |
| 24 | 26 | @ApiModelProperty(value = "返回编码类型", example = "200", allowableValues = "200,400") |
| 25 | 27 | private int code; |
| 26 | 28 | @ApiModelProperty(value = "返回提示消息", example = "成功") | ... | ... |
src/main/java/com/irrigation/icl/utils/ObjectUtils.java