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

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

import javax.validation.constraints.*;

@Schema(description = "管理后台 - pms树新增/修改 Request VO")
@Data
public class IotTreeSaveReqVO {

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

    @Schema(description = "原id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19643")
//    @NotNull(message = "原id不能为空")
    private Long originId;

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

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

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "类型不能为空")
    private String type;

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

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

    @Schema(description = "备注", example = "随便")
    private String remark;

    private Long deptId;
}
