package com.trs.digital.module.manager.controller.admin.digsearch.vo;

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 DigsearchSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11564")
    private Long id;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "资源名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "资源名称不能为空")
    private String docTitle;

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

    @Schema(description = "译文")
    private String docContentTranslate;

    @Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "原文件名不能为空")
    private String fileName;

    @Schema(description = "原文件路径")
    private String filePath;

    @Schema(description = "原文件后缀类型", example = "1")
    private String fileType;

    @Schema(description = "原文件创建日期")
    private LocalDateTime fileCrtime;

    @Schema(description = "原文件修改日期")
    private LocalDateTime fileUpdatetime;

    @Schema(description = "分类标签")
    private String docLable;

    @Schema(description = "文件来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "文件来源不能为空")
    private String sourcename;

    @Schema(description = "语种")
    private String language;

}