Procházet zdrojové kódy

feature:000.000.007:后端使用线程池优化AI生成图表的接口;
创建处理Ai生成任务的线程池;
添加一个参数区分同步还是异步生成图表;

yang yi před 1 měsícem
rodič
revize
3bda242049

+ 25 - 0
serve/src/main/java/space/anyi/BI/entity/Chart.java

@@ -53,6 +53,15 @@ public class Chart implements Serializable {
      * 创建用户ID
      */
     private Long userId;
+    /**
+     * 图表状态,等待中,生成中,成功,失败
+     */
+    private String state;
+
+    /**
+     * 执行信息
+     */
+    private String executeMessage;
 
     /**
      * 创建时间
@@ -170,6 +179,22 @@ public class Chart implements Serializable {
         this.userId = userId;
     }
 
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getExecuteMessage() {
+        return executeMessage;
+    }
+
+    public void setExecuteMessage(String executeMessage) {
+        this.executeMessage = executeMessage;
+    }
+
     /**
      * 创建时间
      */