package com.cy.guoyan.admin.module.guoyan.controller.admin.researchtopiccategory.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 ResearchTopicCategorySaveReqVO {

    @Schema(description = "雪花ID（现为自增ID，后续Java生成雪花ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "11251")
    private Long id;

    @Schema(description = "原始ID（迁移前保留原自增ID）", example = "7394")
    private String oid;

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "分类编号不能为空")
    private Long categoryCode;

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

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

    @Schema(description = "父编号")
    private Long parentCode;

    @Schema(description = "父编号名称", example = "赵六")
    private String parentName;

    @Schema(description = "分类编号1", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "分类编号1不能为空")
    private Long level1Code;

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

    @Schema(description = "分类编号2")
    private Long level2Code;

    @Schema(description = "分类名称2", example = "璨阳")
    private String level2Name;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer order;

    @Schema(description = "排序1", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "排序1不能为空")
    private Integer order1;

    @Schema(description = "排序2", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "排序2不能为空")
    private Integer order2;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @NotEmpty(message = "状态不能为空")
    private String status;

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

    @Schema(description = "资讯数", requiredMode = Schema.RequiredMode.REQUIRED, example = "26626")
//    @NotNull(message = "资讯数不能为空")
    private Integer articleCount;

    @Schema(description = "创建人名称", example = "随便")
    private String creatorName;

    @Schema(description = "更新人名称", example = "随便")
    private String updaterName;

}