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

import com.alibaba.excel.annotation.ExcelProperty;
import com.cy.guoyan.admin.module.infra.controller.admin.file.vo.file.FileVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 国资研究专题信息新增/修改 Request VO")
@Data
public class ResearchTopicInfoSaveReqVO {

    @Schema(description = "雪花ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31542")
    private Long id;

    @Schema(description = "历史数据保留", example = "29851")
    private String oid;

    @Schema(description = "资讯编号")
    private Integer infoNumber;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "作者单位")
    private String authorOrg;

    @Schema(description = "原文发表日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "原文发表日期不能为空")
    private String originalPubDate;

    @Schema(description = "原文发表日期年份", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "原文发表日期年份不能为空")
    private Integer originalPubYear;

    @Schema(description = "关键词")
    private String keywords;

    @Schema(description = "摘要")
    private String summary;

    @Schema(description = "正文")
    private String content;

    @Schema(description = "来源")
    private String source;

    @Schema(description = "主题分类1")
    private String topicCategory1;

    @Schema(description = "主题分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "主题分类不能为空")
    private String topicCategory;

    @Schema(description = "主题分类编号")
    @NotEmpty(message = "主题分类编号不能为空")
    private String topicCategoryCode;

//    @Schema(description = "主题分类", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "主题分类不能为空")
//    private List<String> topicCategoryList;
//
//    @Schema(description = "主题分类编号")
//    @NotEmpty(message = "主题分类编号不能为空")
//    private List<Integer> topicCategoryCodeList;

    @Schema(description = "出处分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "出处分类不能为空")
    private String sourceCategory;

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

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

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

    @Schema(description = "审核人")
    private String auditor;

    @Schema(description = "图片")
    private String image;

    @Schema(description = "图片日期")
    private String imageDate;

    @Schema(description = "是否导入", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "是否导入不能为空")
    private String imported;

    @Schema(description = "审核时间", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "审核时间不能为空")
    private LocalDateTime auditTime;

    @Schema(description = "浏览次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "25705")
//    @NotNull(message = "浏览次数不能为空")
    private Integer viewCount;

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

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

    @Schema(description = "文件列表")
    private List<FileVO> fileList;

}