package com.fdkanfang.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.*;

/**
 * Created by owen on 2020/3/2 0002 14:09
 */
@Data
public class HouseDto {

    @ApiModelProperty(value = "房源id，修改时需要")
    private Long id;

    @ApiModelProperty(value = "小区名称", required = true )
    @NotBlank(message = "小区名称不能为空")
    private String districtName;

//    @ApiModelProperty(value = "地址", required = true )
//    @NotBlank(message = "地址不能为空")
//    private String address;

    // 户型 三房两厅一位（3-2-1）
    @ApiModelProperty(value = "户型 三房两厅一位（3-2-1）", required = true )
    @NotBlank(message = "户型不能为空")
    private String unitType;

    @ApiModelProperty(value = "面积", required = true )
    @NotBlank(message = "面积不能为空")
    private String area;

    // 楼层 ：一共有多少层
    @ApiModelProperty(value = "楼层", required = true )
    @NotNull(message = "楼层不能为空")
    private Integer floor;

    @ApiModelProperty(value = "朝向", required = true )
    @NotBlank(message = "朝向不能为空")
    private String orientation;

    @ApiModelProperty(value = "多文件", required = true )
    private MultipartFile[] files;

    @ApiModelProperty(value = "制作要求", required = false )
    private String requirement;

    // 以下好像没有用到

    // 操作者
//    @ApiModelProperty(hidden = true)
//    private String handler;
//
//    // 上传者
//    @ApiModelProperty(hidden = true)
//    private String uploadName;
//
//    // 审核描述
//    @ApiModelProperty(hidden = true)
//    private String auditDesc;
//
//    @ApiModelProperty(hidden = true)
//    private Date createTime;
//
//    @ApiModelProperty(hidden = true)
//    private Date updateTime;


}
