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/community/ComActDiscussVO.java | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActDiscussVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActDiscussVO.java index 51f43b2..a417396 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActDiscussVO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActDiscussVO.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonFormat; +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; @@ -20,6 +22,7 @@ @ApiModel("一起议议详情") public class ComActDiscussVO { @ApiModelProperty("主键") + @JsonSerialize(using = ToStringSerializer.class) private Long id; @ApiModelProperty("主题") @@ -35,9 +38,11 @@ private String address; @ApiModelProperty("发布人主键") + @JsonSerialize(using = ToStringSerializer.class) private Long userId; @ApiModelProperty("社区主键") + @JsonSerialize(using = ToStringSerializer.class) private Long communityId; @ApiModelProperty("create_at") @@ -102,14 +107,14 @@ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date endTime; - @ApiModelProperty("参与人数") + @ApiModelProperty("参与讨论人数") private Integer joinNum; @ApiModelProperty("单张图片宽度") private BigDecimal imgWidth; @ApiModelProperty("单张图片高度") - private BigDecimal heightWidth; + private BigDecimal imgHeight; @ApiModelProperty("是否可重复投票(1.是 2.否)") private Integer isRepeat; @@ -120,6 +125,24 @@ @ApiModelProperty("议事投票评论列表") private List<ComActDiscussCommentVO> discussCommentList; + @ApiModelProperty("剩余可投票数") + private Integer remainingVotes; + + @ApiModelProperty("已投票记录列表") + private List<ComActDiscussOptionUserVO> comActDiscussOptionUserVOList; + + @ApiModelProperty("议事内容类型(1.社区议事 2.院落议事 3.党群议事 4.居民议事 5.其他)") + private Integer contentType; + + @ApiModelProperty("已参与投票人数") + private Integer votedPersonNum; + + @ApiModelProperty("投票范围(1.全部居民 2.志愿者 3.党员)") + private Integer voteScope; + + @ApiModelProperty("是否需要签名") + private Boolean needSign; + /** * 类型 1 议事 2 投票 */ -- Gitblit v1.7.1