package com.qingyun.service.domain.bo;

import com.qingyun.service.domain.ContractModelConfig;
import com.qingyun.common.core.domain.BaseEntity;
import com.qingyun.common.core.validate.AddGroup;
import com.qingyun.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

/**
 * 模型配置业务对象 contract_model_config
 *
 * @author jianlu
 * @date 2025-07-11
 */
@Data
@AutoMapper(target = ContractModelConfig.class, reverseConvertGenerate = false)
public class ContractModelConfigBo {

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

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

    /**
     * 模型类型：openai deepseek 先固定定这两个选择
     */
    @NotBlank(message = "模型类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelType;

    /**
     * 模型地址
     */
    @NotBlank(message = "模型地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelUrl;

    /**
     * 模型密钥 可为空
     */
    private String modelKey;

    /**
     * 模型版本
     */
    private String modelVersion;

}
