From 10df7e29b51d6a2efacc83d870856f57d97a9b66 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 24 十月 2022 13:48:24 +0800 Subject: [PATCH] #feat 修改别名 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngStructHouseVO.java | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 41 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngStructHouseVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngStructHouseVO.java index 33aa5b6..9e10a6d 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngStructHouseVO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngStructHouseVO.java @@ -1,10 +1,17 @@ package com.panzhihua.common.model.vos.community; +import java.util.Date; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotBlank; + +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; import lombok.Data; - -import java.util.Date; /** * @program: springcloud_k8s_panzhihuazhihuishequ @@ -17,19 +24,24 @@ public class ComMngStructHouseVO { @ApiModelProperty("id") + @JsonSerialize(using = ToStringSerializer.class) private Long id; @ApiModelProperty("房屋地址编号") + @NotBlank(groups = {AddGroup.class}, message = "房屋地址编号不能为空") private String houseCode; @ApiModelProperty("房屋地址") private String houseName; + @ApiModelProperty("房屋地址简称") + private String houseShortName; + @ApiModelProperty("父类地址编码") private String parentCode; - @ApiModelProperty("地址类型 1 楼栋 2 单元 3 楼层 门牌号") - private boolean type; + @ApiModelProperty("地址类型 1小区 2楼栋 3 单元 4楼层 5房间") + private Integer type; @ApiModelProperty("create_at") private Date createAt; @@ -38,5 +50,30 @@ private Date updateAt; @ApiModelProperty("房屋面积") + @Min(value = 1, groups = {AddGroup.class}, message = "房屋面积不能为空") private Double square; + + @ApiModelProperty("居住用户名字-多个用,隔开") + private String names; + + @ApiModelProperty("居住用户手机号-多个用,隔开") + private String phones; + + @ApiModelProperty("房屋状态 1 自主 2 租住 3 商用") + @Min(value = 1, groups = {AddGroup.class}, message = "房屋状态不能为空") + private Integer state; + + @ApiModelProperty("身份 1租户 2房主") + @Min(value = 1, groups = {AddGroup.class}, message = "身份不能为空") + private Integer identity; + + @ApiModelProperty(value = "登录用户id", hidden = true) + private Long userId; + + @ApiModelProperty(value = "小区地址id", hidden = true) + private Long areaId; + + @ApiModelProperty(value = "小区地址编码", hidden = true) + private String areaCode; + } -- Gitblit v1.7.1