From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期六, 21 八月 2021 16:35:14 +0800 Subject: [PATCH] 随手拍改版接口开发 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java | 88 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 88 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java new file mode 100644 index 0000000..6106a75 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java @@ -0,0 +1,88 @@ +package com.panzhihua.common.model.vos.community; + +import com.panzhihua.common.validated.AddGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.util.Date; + +/** + * @program: springcloud_k8s_panzhihuazhihuishequ + * @description: 社区 + * @author: huang.hongfa weixin hhf9596 qq 959656820 + * @create: 2020-12-15 10:06 + **/ +@Data +@ApiModel("社区表") +public class ComActVO { + + @ApiModelProperty("社区id") + private Long communityId; + + @ApiModelProperty("社区名字") + @NotBlank(groups = {AddGroup.class},message = "社区名字不能为空") + private String name; + + @ApiModelProperty("社区地址") + @NotBlank(groups = {AddGroup.class},message = "社区地址不能为空") + private String address; + + @ApiModelProperty("经度") + @NotBlank(groups = {AddGroup.class},message = "经度不能为空") + private String lng; + + @ApiModelProperty("维度") + @NotBlank(groups = {AddGroup.class},message = "纬度不能为空") + private String lat; + + @ApiModelProperty("创建时间") + private Date createAt; + + @ApiModelProperty("省份地址编码") + @NotBlank(groups = {AddGroup.class},message = "省份地址编码不能为空") + private String provinceCode; + + @ApiModelProperty("市级地址编码") + @NotBlank(groups = {AddGroup.class},message = "市级地址编码不能为空") + private String cityCode; + + @ApiModelProperty("区级地址编码") + @NotBlank(groups = {AddGroup.class},message = "区级地址编码不能为空") + private String areaCode; + + @ApiModelProperty("区级地址编码-名字") + private String areaName; + + @ApiModelProperty("社区面积") + @Min(value =1,groups = {AddGroup.class},message = "社区面积不能为空") + private Double square; + + @ApiModelProperty("联系人") + @NotBlank(groups = {AddGroup.class},message = "联系人不能为空") + private String contacts; + + @ApiModelProperty("联系人电话") + @NotBlank(groups = {AddGroup.class},message = "联系人电话不能为空") + private String contactsPhone; + + @ApiModelProperty("超管账号") + @NotBlank(groups = {AddGroup.class},message = "超管账号不能为空") + private String account; + + @ApiModelProperty("账号密码") + @NotBlank(groups = {AddGroup.class},message = "账号密码不能为空") + private String password; + + @ApiModelProperty(value = "状态 0 启用 1 禁用",example = "0") + private Integer state; + + @ApiModelProperty("距离-单位米") + private String distance; + + @ApiModelProperty("街道Id") + private Long streetId; +} -- Gitblit v1.7.1