From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/neighbor/ComActNeighborCommentByAdminVO.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/neighbor/ComActNeighborCommentByAdminVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/neighbor/ComActNeighborCommentByAdminVO.java index d1839ad..edc8845 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/neighbor/ComActNeighborCommentByAdminVO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/neighbor/ComActNeighborCommentByAdminVO.java @@ -1,10 +1,12 @@ package com.panzhihua.common.model.vos.neighbor; +import java.util.Date; + +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; - -import java.util.Date; /** * @auther llming @@ -15,6 +17,7 @@ public class ComActNeighborCommentByAdminVO { @ApiModelProperty("评论id") + @JsonSerialize(using = ToStringSerializer.class) private Long id; @ApiModelProperty("评论内容") @@ -26,13 +29,11 @@ @ApiModelProperty("评论用户") private String userName; - @ApiModelProperty("评论用户手机号") private String userPhone; @ApiModelProperty("评论时间") private Date createAt; - @ApiModelProperty("状态(1.显示 2.隐藏)") private Integer status; -- Gitblit v1.7.1