package com.cy.guoyan.admin.module.guoyan.controller.admin.researchtopiccategory.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cy.guoyan.admin.module.guoyan.dal.dataobject.researchtopiccategory.ResearchTopicCategoryDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 国资研究专题分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ResearchTopicCategoryRespVO {

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

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

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("分类编号")
    private Long categoryCode;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("分类名称")
    private String categoryName;

    @Schema(description = "层级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("层级")
    private Integer level;

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

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

    @Schema(description = "分类编号1", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("分类编号1")
    private Long level1Code;

    @Schema(description = "分类名称1", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("分类名称1")
    private String level1Name;

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

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

    @Schema(description = "排序1", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序1")
    private Integer order1;

    @Schema(description = "排序2", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序2")
    private Integer order2;

    @Schema(description = "登记时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("登记时间")
    private LocalDateTime createTime;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private String status;

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

    @Schema(description = "资讯数", requiredMode = Schema.RequiredMode.REQUIRED, example = "26626")
    @ExcelProperty("资讯数")
    private Integer articleCount;

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

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

    @TableField(exist = false)
    private List<ResearchTopicCategoryRespVO> children;


}