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

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

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

@Schema(description = "管理后台 - SOC卡分析数据源新增/修改 Request VO")
@Data
public class IotSocSourceSaveReqVO {

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

    @Schema(description = "父类别id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12171")
    @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 = "备注", example = "随便")
    private String remark;

}