From 86df207c37502cce1b2043e1c7c0486459eef1d6 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 13 三月 2025 19:58:45 +0800 Subject: [PATCH] 党员、诉求评论基础代码 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActFourMemberVO.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActFourMemberVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActFourMemberVO.java index 34d9453..f6e63c9 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActFourMemberVO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActFourMemberVO.java @@ -1,6 +1,8 @@ package com.panzhihua.common.model.vos.community; import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.panzhihua.common.validated.AddGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -19,12 +21,14 @@ @Data @ApiModel("四长四员实体") public class ComActFourMemberVO { - private Integer id; + @JsonSerialize(using = ToStringSerializer.class) + private Long id; /** * 用户id */ @ApiModelProperty(value = "用户id") + @JsonSerialize(using = ToStringSerializer.class) private Long userId; /** @@ -43,6 +47,7 @@ * 社区id */ @ApiModelProperty(value = "社区id") + @JsonSerialize(using = ToStringSerializer.class) private Long communityId; /** @@ -66,6 +71,7 @@ @ApiModelProperty("角色") @Min(value = 1, groups = {AddGroup.class}, message = "角色不能为空") + @JsonSerialize(using = ToStringSerializer.class) private Long roleId; @ApiModelProperty("手机号") -- Gitblit v1.7.1