From efcf90cf662765d83cd265aa310e9c069d71ab9e Mon Sep 17 00:00:00 2001
From: 18586361686 <1207669650@qq.com>
Date: 星期三, 30 四月 2025 15:15:22 +0800
Subject: [PATCH] chore: 移动apiKey到系统模块

---
 aiflowy-modules/aiflowy-module-system/src/main/java/tech/aiflowy/system/controller/AiBotApiKeyController.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/aiflowy-modules/aiflowy-module-ai/src/main/java/tech/aiflowy/ai/controller/AiBotApiKeyController.java b/aiflowy-modules/aiflowy-module-system/src/main/java/tech/aiflowy/system/controller/AiBotApiKeyController.java
similarity index 83%
rename from aiflowy-modules/aiflowy-module-ai/src/main/java/tech/aiflowy/ai/controller/AiBotApiKeyController.java
rename to aiflowy-modules/aiflowy-module-system/src/main/java/tech/aiflowy/system/controller/AiBotApiKeyController.java
index dc56d67..cd34695 100644
--- a/aiflowy-modules/aiflowy-module-ai/src/main/java/tech/aiflowy/ai/controller/AiBotApiKeyController.java
+++ b/aiflowy-modules/aiflowy-module-system/src/main/java/tech/aiflowy/system/controller/AiBotApiKeyController.java
@@ -1,17 +1,17 @@
-package tech.aiflowy.ai.controller;
+package tech.aiflowy.system.controller;
 
 import com.mybatisflex.core.table.TableInfo;
 import com.mybatisflex.core.table.TableInfoFactory;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
-import tech.aiflowy.ai.entity.AiBotApiKey;
-import tech.aiflowy.ai.service.AiBotApiKeyService;
 import tech.aiflowy.common.ai.util.UUIDGenerator;
 import tech.aiflowy.common.domain.Result;
 import tech.aiflowy.common.entity.LoginAccount;
 import tech.aiflowy.common.satoken.util.SaTokenUtil;
 import tech.aiflowy.common.web.controller.BaseCurdController;
+import tech.aiflowy.system.entity.SysApiKey;
+import tech.aiflowy.system.service.SysApiKeyService;
 
 import java.time.LocalDate;
 import java.time.ZoneId;
@@ -24,9 +24,9 @@
  * @since 2025-04-18
  */
 @RestController
-@RequestMapping("/api/v1/aiBotApiKey")
-public class AiBotApiKeyController extends BaseCurdController<AiBotApiKeyService, AiBotApiKey> {
-    public AiBotApiKeyController(AiBotApiKeyService service) {
+@RequestMapping("/api/v1/sysApiKey")
+public class AiBotApiKeyController extends BaseCurdController<SysApiKeyService, SysApiKey> {
+    public AiBotApiKeyController(SysApiKeyService service) {
         super(service);
     }
 
@@ -38,7 +38,7 @@
     @PostMapping("/key/save")
     public Result save() {
         String apiKey = UUIDGenerator.generateUUID();
-        AiBotApiKey entity = new AiBotApiKey();
+        SysApiKey entity = new SysApiKey();
         entity.setApiKey(apiKey);
         entity.setCreated(new Date());
         entity.setStatus(1);

--
Gitblit v1.8.0