package com.panzhihua.common.model.dtos.community.rentingHouses;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Pattern;
|
|
import com.panzhihua.common.validated.AddGroup;
|
import com.panzhihua.common.validated.PutGroup;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
* @title: RentingHouseRegisterDTO
|
* @projectName: 成都呐喊信息技术有限公司-智慧社区项目
|
* @description: 房源登记请求类
|
* @author: hans
|
* @date: 2021/11/24 10:26
|
*/
|
@Data
|
@ApiModel("房源登记请求类")
|
public class RentingHouseRegisterDTO {
|
|
@ApiModelProperty("id")
|
@NotNull(groups = PutGroup.class, message = "id不能为空")
|
private Long id;
|
|
@ApiModelProperty(value = "地址")
|
@NotBlank(groups = AddGroup.class, message = "地址不能为空")
|
private String address;
|
|
@ApiModelProperty(value = "小区名称")
|
@NotBlank(groups = AddGroup.class, message = "小区名称不能为空")
|
private String villageName;
|
|
@ApiModelProperty(value = "街/路/巷")
|
@NotBlank(groups = AddGroup.class, message = "街/路/巷不能为空")
|
private String alley;
|
|
@ApiModelProperty(value = "街/路/巷号")
|
@NotBlank(groups = AddGroup.class, message = "街/路/巷号不能为空")
|
private String houseNum;
|
|
@ApiModelProperty(value = "楼栋号")
|
private String buildingNo;
|
|
@ApiModelProperty(value = "单元号")
|
private String unitNo;
|
|
@ApiModelProperty(value = "楼层号")
|
private String floor;
|
|
@ApiModelProperty(value = "户室(房间号)")
|
private String houseNo;
|
|
@ApiModelProperty(value = "看房电话")
|
@Pattern(groups = {AddGroup.class}, message = "看房电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$")
|
private String seeHourseTelephone;
|
|
@ApiModelProperty(value = "租房标题")
|
@NotBlank(groups = AddGroup.class, message = "租房标题不能为空")
|
private String title;
|
|
@ApiModelProperty(value = "室数量")
|
@NotNull(groups = {AddGroup.class}, message = "室数量不能为空")
|
private Integer brn;
|
|
@ApiModelProperty(value = "厅数量")
|
@NotNull(groups = {AddGroup.class}, message = "厅数量不能为空")
|
private Integer lrn;
|
|
@ApiModelProperty(value = "卫数量")
|
@NotNull(groups = {AddGroup.class}, message = "卫数量不能为空")
|
private Integer wcn;
|
|
@ApiModelProperty(value = "月租金")
|
@NotNull(groups = {AddGroup.class}, message = "月租金不能为空")
|
private BigDecimal monthlyRentMoney;
|
|
@ApiModelProperty(value = "保证金")
|
@NotNull(groups = {AddGroup.class}, message = "保证金不能为空")
|
private BigDecimal depositMoney;
|
|
@ApiModelProperty(value = "服务费")
|
@NotNull(groups = {AddGroup.class}, message = "服务费不能为空")
|
private BigDecimal serverCharge;
|
|
@ApiModelProperty(value = "定金")
|
@NotNull(groups = {AddGroup.class}, message = "定金不能为空")
|
private BigDecimal dingMoney;
|
|
@ApiModelProperty(value = "建筑面积")
|
private BigDecimal constructArea;
|
|
@ApiModelProperty(value = "总楼层")
|
@NotBlank(groups = AddGroup.class, message = "总楼层不能为空")
|
private String totalFloor;
|
|
@ApiModelProperty(value = "朝向(1东2南3西4北5东南6东北7西南8西北9南北10东西)")
|
private Integer orientation;
|
|
@ApiModelProperty(value = "装修情况(1.毛坯房 2.简装 3.精装修)")
|
@NotNull(groups = {AddGroup.class}, message = "装修情况不能为空")
|
private Integer decoration;
|
|
@ApiModelProperty(value = "看房时间(1.随时看房 2.提前预约)")
|
@NotNull(groups = {AddGroup.class}, message = "看房时间不能为空")
|
private Integer seeHourseDate;
|
|
@ApiModelProperty(value = "房源介绍")
|
private String hourseDescription;
|
|
@ApiModelProperty(value = "入住要求")
|
private String checkInRequirement;
|
|
@ApiModelProperty(value = "房内物品")
|
private String hourseItem;
|
|
@ApiModelProperty(value = "房屋标签(多个逗号隔开)")
|
private String label;
|
|
@ApiModelProperty(value = "房主姓名")
|
@NotBlank(groups = AddGroup.class, message = "房主姓名不能为空")
|
private String hourseOwnerName;
|
|
@ApiModelProperty(value = "房主身份证")
|
@NotBlank(groups = AddGroup.class, message = "房主身份证不能为空")
|
private String hourseIdCard;
|
|
@ApiModelProperty(value = "房主电话")
|
@Pattern(groups = {AddGroup.class}, message = "房主电话格式错误", regexp = "^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\\d{8}$")
|
private String hoursePhone;
|
|
@ApiModelProperty(value = "房屋的经度")
|
@NotBlank(groups = AddGroup.class, message = "房屋的经度不能为空")
|
private String longitude;
|
|
@ApiModelProperty(value = "房屋的纬度")
|
@NotBlank(groups = AddGroup.class, message = "房屋的纬度不能为空")
|
private String latitude;
|
|
@ApiModelProperty(value = "房源图片")
|
private List<String> housePictures;
|
|
@ApiModelProperty(value = "产权证明")
|
@NotEmpty(groups = {AddGroup.class}, message = "产权证明不能为空")
|
private List<String> propertyPictures;
|
|
@ApiModelProperty(value = "证件照片")
|
@NotEmpty(groups = {AddGroup.class}, message = "证件照片不能为空")
|
private List<String> credentialsPictures;
|
|
@ApiModelProperty(value = "当前用户", hidden = true)
|
private Long userId;
|
|
@ApiModelProperty(value = "社区id", hidden = true)
|
private Long communityId;
|
|
@ApiModelProperty(value = "认证状态(1、未认证2、已认证)", hidden = true)
|
private Integer authStatus;
|
|
@ApiModelProperty(value = "1、待认证2、待发布3、待出租4、保留中 5出租中6、已超时7、已到期)", hidden = true)
|
private Integer detailStatus;
|
|
@ApiModelProperty(value = "房东的用户ID,用户表记录了房东的详细信息", hidden = true)
|
private Long hourseOwnerUserId;
|
|
@ApiModelProperty(value = "areaCode", hidden = true)
|
private String areaCode;
|
}
|