package cn.iocoder.yudao.module.pms.controller.admin.qhse.hazard.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - QHSE-隐患排查分类新增/修改 Request VO")
@Data
public class IotHazardTypeSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22232")
    private Long id;

    @Schema(description = "父类别id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8374")
    @NotNull(message = "父类别id不能为空")
    private Long parentId;

    @Schema(description = "类别名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "类别名称不能为空")
    private String name;

    @Schema(description = "类别编码")
    private String code;

    @Schema(description = "分类排序")
    private Integer sort;

    @Schema(description = "开启状态", example = "2")
    private Integer status;

    @Schema(description = "部门id", example = "18941")
    private Long deptId;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}