From 5e492e5d5a2b743e2e99443220d343f72a633f6d Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 03 三月 2026 16:57:52 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/ai/entity/LlmRouteConfig.java |  249 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 249 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/ai/entity/LlmRouteConfig.java b/src/main/java/com/zy/ai/entity/LlmRouteConfig.java
new file mode 100644
index 0000000..418ccb9
--- /dev/null
+++ b/src/main/java/com/zy/ai/entity/LlmRouteConfig.java
@@ -0,0 +1,249 @@
+package com.zy.ai.entity;
+
+import com.baomidou.mybatisplus.annotations.TableField;
+import com.baomidou.mybatisplus.annotations.TableId;
+import com.baomidou.mybatisplus.annotations.TableName;
+import com.baomidou.mybatisplus.enums.IdType;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@TableName("sys_llm_route")
+public class LlmRouteConfig implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    private String name;
+
+    @TableField("base_url")
+    private String baseUrl;
+
+    @TableField("api_key")
+    private String apiKey;
+
+    private String model;
+
+    /**
+     * 1 寮�鍚繁搴︽�濊�� 0 鍏抽棴
+     */
+    private Short thinking;
+
+    /**
+     * 鏁板瓧瓒婂皬浼樺厛绾ц秺楂�
+     */
+    private Integer priority;
+
+    /**
+     * 1 鍚敤 0 绂佺敤
+     */
+    private Short status;
+
+    @TableField("switch_on_quota")
+    private Short switchOnQuota;
+
+    @TableField("switch_on_error")
+    private Short switchOnError;
+
+    @TableField("cooldown_seconds")
+    private Integer cooldownSeconds;
+
+    @TableField("cooldown_until")
+    private Date cooldownUntil;
+
+    @TableField("fail_count")
+    private Integer failCount;
+
+    @TableField("success_count")
+    private Integer successCount;
+
+    @TableField("consecutive_fail_count")
+    private Integer consecutiveFailCount;
+
+    @TableField("last_error")
+    private String lastError;
+
+    @TableField("last_used_time")
+    private Date lastUsedTime;
+
+    @TableField("last_fail_time")
+    private Date lastFailTime;
+
+    @TableField("create_time")
+    private Date createTime;
+
+    @TableField("update_time")
+    private Date updateTime;
+
+    private String memo;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getBaseUrl() {
+        return baseUrl;
+    }
+
+    public void setBaseUrl(String baseUrl) {
+        this.baseUrl = baseUrl;
+    }
+
+    public String getApiKey() {
+        return apiKey;
+    }
+
+    public void setApiKey(String apiKey) {
+        this.apiKey = apiKey;
+    }
+
+    public String getModel() {
+        return model;
+    }
+
+    public void setModel(String model) {
+        this.model = model;
+    }
+
+    public Short getThinking() {
+        return thinking;
+    }
+
+    public void setThinking(Short thinking) {
+        this.thinking = thinking;
+    }
+
+    public Integer getPriority() {
+        return priority;
+    }
+
+    public void setPriority(Integer priority) {
+        this.priority = priority;
+    }
+
+    public Short getStatus() {
+        return status;
+    }
+
+    public void setStatus(Short status) {
+        this.status = status;
+    }
+
+    public Short getSwitchOnQuota() {
+        return switchOnQuota;
+    }
+
+    public void setSwitchOnQuota(Short switchOnQuota) {
+        this.switchOnQuota = switchOnQuota;
+    }
+
+    public Short getSwitchOnError() {
+        return switchOnError;
+    }
+
+    public void setSwitchOnError(Short switchOnError) {
+        this.switchOnError = switchOnError;
+    }
+
+    public Integer getCooldownSeconds() {
+        return cooldownSeconds;
+    }
+
+    public void setCooldownSeconds(Integer cooldownSeconds) {
+        this.cooldownSeconds = cooldownSeconds;
+    }
+
+    public Date getCooldownUntil() {
+        return cooldownUntil;
+    }
+
+    public void setCooldownUntil(Date cooldownUntil) {
+        this.cooldownUntil = cooldownUntil;
+    }
+
+    public Integer getFailCount() {
+        return failCount;
+    }
+
+    public void setFailCount(Integer failCount) {
+        this.failCount = failCount;
+    }
+
+    public Integer getSuccessCount() {
+        return successCount;
+    }
+
+    public void setSuccessCount(Integer successCount) {
+        this.successCount = successCount;
+    }
+
+    public Integer getConsecutiveFailCount() {
+        return consecutiveFailCount;
+    }
+
+    public void setConsecutiveFailCount(Integer consecutiveFailCount) {
+        this.consecutiveFailCount = consecutiveFailCount;
+    }
+
+    public String getLastError() {
+        return lastError;
+    }
+
+    public void setLastError(String lastError) {
+        this.lastError = lastError;
+    }
+
+    public Date getLastUsedTime() {
+        return lastUsedTime;
+    }
+
+    public void setLastUsedTime(Date lastUsedTime) {
+        this.lastUsedTime = lastUsedTime;
+    }
+
+    public Date getLastFailTime() {
+        return lastFailTime;
+    }
+
+    public void setLastFailTime(Date lastFailTime) {
+        this.lastFailTime = lastFailTime;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo;
+    }
+}

--
Gitblit v1.9.1