package com.repair.model.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: binguo
 * @Date: 2023/7/25 星期二 11:42
 * @Description: com.repair.model.request
 * @Version: 1.0
 */
@Data
public class repairRecordRequest {
    @ApiModelProperty(value = "报修区域ID")
    @NotBlank(message = "报修区域不能为空")
    private String areaId;

    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "详细地址不能为空")
    private String address;

    @ApiModelProperty(value = "报修物品ID")
    @NotNull(message = "报修物品不能为空")
    private Integer articleId;

    @ApiModelProperty(value = "校区ID")
    @NotNull(message = "校区不能为空")
    private Integer schoolId;

    @ApiModelProperty(value = "楼栋ID")
    @NotNull(message = "楼栋不能为空")
    private Integer buildId;

    @ApiModelProperty(value = "故障描述")//不必填
    private String description;

    @ApiModelProperty(value = "报修录音")//不必填
    private String voice;

    @ApiModelProperty(value = "报修录音时长")//不必填
    private Integer voiceLength;

    @ApiModelProperty(value = "故障图片 最多三张（多张按逗号隔开）")//必填
    @NotEmpty(message = "报修图片不能为空")
    private List<String> images;

    @ApiModelProperty(value = "报修人姓名")
    @NotBlank(message = "报修姓名不能为空")
    private String userName;

    @ApiModelProperty(value = "报修人联系电话")
    @NotBlank(message = "报修电话不能为空")
    private String userPhone;

    @ApiModelProperty(value = "报修人ID")
    @NotNull(message = "报修人ID不能为空")
    private Integer userId;
}
