mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
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;
}