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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 设备分类新增/修改 Request VO")
@Data
public class IotProductClassifySaveReqVO {

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

    @Schema(description = "父分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1691")
    @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;

    private String remark;
}
