package com.yuchen.saas.park.api.dto.work;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SaasWorkOrderTypeDto {

    /**
     * 主键ID
     */
    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;
    /**
     * 所属工单大类(1:报事报修 2:设备报修 3:告警运维)
     */
    @ApiModelProperty(name = "type", value = "所属工单大类(1:报事报修 2:设备报修 3:告警运维)")
    @NotNull(message = "所属工单大类不能为空")
    private Integer type;
    /**
     * 工单类型名称
     */
    @ApiModelProperty(name = "name", value = "工单类型名称")
    @NotBlank(message = "工单类型名称不能为空")
    private String name;
    /**
     * 编号
     */
    @ApiModelProperty(name = "tno", value = "编号")
    @NotBlank(message = "编号不能为空")
    private String tno;
    /**
     * 备注说明
     */
    @ApiModelProperty(name = "remark", value = "备注说明")
    private String remark;

}
