package com.datamate.datamanagement.interfaces.dto;

import com.datamate.datamanagement.common.enums.KnowledgeSourceType;
import com.datamate.datamanagement.common.enums.KnowledgeStatusType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;
import java.util.List;

/**
 * 创建知识集请求DTO
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class CreateKnowledgeSetRequest {
    /**
     * 知识集名称
     */
    @Size(min = 1, max = 100)
    @NotBlank(message = "知识集名称不能为空")
    private String name;
    /**
     * 知识集描述
     */
    @Size(max = 1000)
    private String description;
    /**
     * 标签列表
     */
    private List<String> tags;
    /**
     * 状态
     */
    private KnowledgeStatusType status;
    /**
     * 领域
     */
    @Size(max = 100)
    private String domain;
    /**
     * 业务线
     */
    @Size(max = 100)
    private String businessLine;
    /**
     * 负责人
     */
    @Size(max = 100)
    private String owner;
    /**
     * 有效期开始
     */
    private LocalDate validFrom;
    /**
     * 有效期结束
     */
    private LocalDate validTo;
    /**
     * 来源类型
     */
    private KnowledgeSourceType sourceType;
    /**
     * 敏感级别
     */
    @Size(max = 50)
    private String sensitivity;
    /**
     * 扩展元数据
     */
    private String metadata;
}
