package org.dromara.ai.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.ai.domain.AiSensitiveWord;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * AI敏感词业务对象 ai_sensitive_word
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode
@AutoMapper(target = AiSensitiveWord.class, reverseConvertGenerate = false)
public class AiSensitiveWordBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 敏感词
     */
    @NotBlank(message = "敏感词不能为空")
    private String word;

    /**
     * 词类型(PROFANITY/HATE_SPEECH/VIOLENCE/SEXUAL_CONTENT/ILLEGAL_ACTIVITY/PERSONAL_INFO/SPAM/MALICIOUS_CODE/POLITICAL_SENSITIVE/COMMERCIAL_AD)
     */
    @NotBlank(message = "词类型不能为空")
    private String wordType;

    /**
     * 是否启用(0=禁用 1=启用)
     */
    private Integer enabled;

    /**
     * 优先级(数字越大优先级越高)
     */
    private Integer priority;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间开始
     */
    private Date createTimeStart;

    /**
     * 创建时间结束
     */
    private Date createTimeEnd;

}