package cn.iocoder.yudao.module.archive.controller.admin.category.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
@Schema(description = "管理后台 - 档案分类新增/修改 Request VO")
|
@Data
|
public class ArchiveCategorySaveReqVO {
|
|
@Schema(description = "编号", example = "1")
|
private Long id;
|
|
@Schema(description = "父分类 ID,0=顶级", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
@NotNull(message = "父分类不能为空")
|
private Long parentId;
|
|
@Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "课题档案")
|
@NotEmpty(message = "分类名称不能为空")
|
private String name;
|
|
@Schema(description = "分类编码,唯一", requiredMode = Schema.RequiredMode.REQUIRED, example = "research")
|
@NotEmpty(message = "分类编码不能为空")
|
private String code;
|
|
@Schema(description = "显示排序", example = "2")
|
private Integer sort;
|
|
@Schema(description = "分类说明", example = "课题立项、结项、成果材料")
|
private String description;
|
|
@Schema(description = "该分类下档案默认密级:1-公开 2-内部 3-保密", example = "2")
|
private Integer defaultSecretLevel;
|
|
@Schema(description = "状态:0-启用 1-停用", example = "0")
|
private Integer status;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
}
|