package cn.iocoder.yudao.module.server.controller.admin.materialcategory.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 MaterialCategorySaveReqVO {

    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11238")
    private Long id;

    @Schema(description = "父分类ID", example = "29835")
    private Long parentId;

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

    @Schema(description = "分类层级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分类层级不能为空")
    private Integer level;

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

    @Schema(description = "状态", example = "2")
    private String status;

}