package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.math.BigDecimal;

/**
 * AI配置业务对象 sys_oa_ai_config
 *
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOaAiConfigBo extends BaseEntity {

    /**
     * 配置ID
     */
    @NotNull(message = "配置ID不能为空", groups = { EditGroup.class })
    private Long configId;

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configName;

    /**
     * API密钥
     */
    @NotBlank(message = "API密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String apiKey;

    /**
     * 基础URL
     */
    @NotBlank(message = "基础URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseUrl;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 最大重试次数
     */
    private Integer maxRetries;

    /**
     * 温度参数
     */
    private BigDecimal temperature;

    /**
     * 最大token数
     */
    private Integer maxTokens;

    /**
     * 状态(0:禁用 1:启用)
     */
    private Integer status;

} 