添加序列化

This commit is contained in:
wanggeng888 2021-01-05 15:31:01 +08:00
parent e0c873cca0
commit f593fd5624
7 changed files with 24 additions and 6 deletions

View File

@ -3,6 +3,8 @@ package com.cm.news.pojo.dtos.newsantistop;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: NewsAntistopDTO * @ClassName: NewsAntistopDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsAntistopDTO { public class NewsAntistopDTO implements Serializable {
private static final long serialVersionUID = -625125395265208906L;
@ApiModelProperty(name = "newsAntistopId", value = "主键") @ApiModelProperty(name = "newsAntistopId", value = "主键")
private String newsAntistopId; private String newsAntistopId;
@ApiModelProperty(name = "antistopName", value = "敏感词") @ApiModelProperty(name = "antistopName", value = "敏感词")

View File

@ -16,6 +16,7 @@ import java.io.Serializable;
@ApiModel @ApiModel
public class NewsCommentCountDTO implements Serializable { public class NewsCommentCountDTO implements Serializable {
private static final long serialVersionUID = -4018217677091807455L;
@ApiModelProperty(name = "newsContentId", value = "新闻内容ID") @ApiModelProperty(name = "newsContentId", value = "新闻内容ID")
private String newsContentId; private String newsContentId;
@ApiModelProperty(name = "count", value = "评论数量") @ApiModelProperty(name = "count", value = "评论数量")

View File

@ -3,6 +3,8 @@ package com.cm.news.pojo.dtos.newscommentlike;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: NewsCommentLikeDTO * @ClassName: NewsCommentLikeDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsCommentLikeDTO { public class NewsCommentLikeDTO implements Serializable {
private static final long serialVersionUID = 1566540002846119863L;
@ApiModelProperty(name = "newsCommentLikeId", value = "主键") @ApiModelProperty(name = "newsCommentLikeId", value = "主键")
private String newsCommentLikeId; private String newsCommentLikeId;
@ApiModelProperty(name = "newsCommentId", value = "评论") @ApiModelProperty(name = "newsCommentId", value = "评论")

View File

@ -11,6 +11,7 @@ import com.cm.news.pojo.vos.newslabel.NewsLabelVO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
@ -22,8 +23,9 @@ import java.util.List;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsContentDTO { public class NewsContentDTO implements Serializable {
private static final long serialVersionUID = -9025688481165296409L;
@ApiModelProperty(name = "newsContentId", value = "主键") @ApiModelProperty(name = "newsContentId", value = "主键")
private String newsContentId; private String newsContentId;
@ApiModelProperty(name = "newsDirectoriesId", value = "新闻版块") @ApiModelProperty(name = "newsDirectoriesId", value = "新闻版块")

View File

@ -3,6 +3,8 @@ package com.cm.news.pojo.dtos.newscontentcollect;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: NewsContentCollectDTO * @ClassName: NewsContentCollectDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsContentCollectCountDTO { public class NewsContentCollectCountDTO implements Serializable {
private static final long serialVersionUID = 3684532278349299854L;
@ApiModelProperty(name = "newsContentId", value = "新闻ID") @ApiModelProperty(name = "newsContentId", value = "新闻ID")
private String newsContentId; private String newsContentId;
@ApiModelProperty(name = "collectCount", value = "收藏数") @ApiModelProperty(name = "collectCount", value = "收藏数")

View File

@ -3,6 +3,8 @@ package com.cm.news.pojo.dtos.newscontentcollect;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: NewsContentCollectDTO * @ClassName: NewsContentCollectDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsContentCollectDTO { public class NewsContentCollectDTO implements Serializable {
private static final long serialVersionUID = 3774070218632818773L;
@ApiModelProperty(name = "newsContentCollectId", value = "主键") @ApiModelProperty(name = "newsContentCollectId", value = "主键")
private String newsContentCollectId; private String newsContentCollectId;
@ApiModelProperty(name = "newsContentId", value = "新闻") @ApiModelProperty(name = "newsContentId", value = "新闻")

View File

@ -3,6 +3,8 @@ package com.cm.news.pojo.dtos.newscontentconfig;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: NewsContentConfigDTO * @ClassName: NewsContentConfigDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class NewsContentConfigDTO { public class NewsContentConfigDTO implements Serializable {
private static final long serialVersionUID = -2964079125008431435L;
@ApiModelProperty(name = "newsContentConfigId", value = "主键") @ApiModelProperty(name = "newsContentConfigId", value = "主键")
private String newsContentConfigId; private String newsContentConfigId;
@ApiModelProperty(name = "newsConfigTop", value = "置顶1:置顶,0:普通") @ApiModelProperty(name = "newsConfigTop", value = "置顶1:置顶,0:普通")