package cn.iocoder.yudao.module.llm.controller.admin.modelservice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 模型服务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ModelServiceRespVO {

    @Schema(description = "模型服务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8280")
    @ExcelProperty("模型服务ID")
    private Long id;

    @Schema(description = "服务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("服务名称")
    private String serviceName;

    @Schema(description = "微调任务ID")
    @ExcelProperty("微调任务ID")
    private Long fineTuningTask;

    @Schema(description = "检查点，使用字典（llm_model_checkpoint）")
    @ExcelProperty(value = "检查点，使用字典（llm_model_checkpoint）", converter = DictConvert.class)
    @DictFormat("llm_model_checkpoint") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long checkPoint;

    @Schema(description = "GPU，使用字典（llm_gpu_type）", example = "1")
    @ExcelProperty(value = "GPU，使用字典（llm_gpu_type）", converter = DictConvert.class)
    @DictFormat("llm_gpu_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long gpuType;

    @Schema(description = "GPU数量", example = "2")
    @ExcelProperty("GPU数量")
    private Integer gpuCount;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "模型服务状态，使用字典（llm_model_status）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "模型服务状态，使用字典（llm_model_status）", converter = DictConvert.class)
    @DictFormat("llm_model_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "微调任务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    private String fineTuningTaskName;
    /**
     * jobID
     */
    private Long jobId;

    @Schema(description = "apiKey", example = "123")
    private String apiKey;

    @Schema(description = "apiUrl", example = "www.sdada.com")
    private String apiUrl;

    /**
     * 模型版本号
     */
    @Schema(description = "模型版本号", example = "1.0.0")
    @ExcelProperty("版本号")
    private String version;
}
