diff --git a/service-ai/service-ai-web/pom.xml b/service-ai/service-ai-web/pom.xml
index 9752d53..4e650c6 100644
--- a/service-ai/service-ai-web/pom.xml
+++ b/service-ai/service-ai-web/pom.xml
@@ -20,8 +20,16 @@
com.google.protobuf
protobuf-java
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+ org.springframework.boot
+ spring-boot-starter-jetty
+
org.springframework.ai
spring-ai-starter-model-openai
@@ -40,7 +48,12 @@
org.springframework.boot
- spring-boot-starter-jdbc
+ spring-boot-starter-data-jpa
+
+
+ com.blinkfox
+ fenix-spring-boot-starter
+ 3.0.0
com.mysql
@@ -89,6 +102,11 @@
lombok-mapstruct-binding
0.2.0
+
+ org.hibernate
+ hibernate-jpamodelgen
+ 6.6.8.Final
+
-Amapstruct.defaultComponentModel=spring
diff --git a/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/WebApplication.java b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/WebApplication.java
index b3298c4..96143fc 100644
--- a/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/WebApplication.java
+++ b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/WebApplication.java
@@ -1,5 +1,6 @@
package com.lanyuanxiaoyao.service.ai.web;
+import com.blinkfox.fenix.EnableFenix;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.beans.BeansException;
import org.springframework.boot.ApplicationArguments;
@@ -10,6 +11,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
+import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -23,6 +25,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableEncryptableProperties
@EnableRetry
@EnableScheduling
+@EnableFenix
+@EnableJpaAuditing
public class WebApplication implements ApplicationRunner, ApplicationContextAware {
private static ApplicationContext context;
diff --git a/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/DetailController.java b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/DetailController.java
new file mode 100644
index 0000000..61ec8d7
--- /dev/null
+++ b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/DetailController.java
@@ -0,0 +1,13 @@
+package com.lanyuanxiaoyao.service.ai.web.base.controller;
+
+import com.lanyuanxiaoyao.service.ai.core.entity.amis.AmisResponse;
+
+/**
+ * @author lanyuanxiaoyao
+ * @date 2024-11-28
+ */
+public interface DetailController {
+ String DETAIL = "/detail/{id}";
+
+ AmisResponse detail(Long id) throws Exception;
+}
diff --git a/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/ListController.java b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/ListController.java
new file mode 100644
index 0000000..02dd5b2
--- /dev/null
+++ b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/ListController.java
@@ -0,0 +1,17 @@
+package com.lanyuanxiaoyao.service.ai.web.base.controller;
+
+import com.lanyuanxiaoyao.service.ai.core.entity.amis.AmisResponse;
+import com.lanyuanxiaoyao.service.ai.web.base.controller.query.Query;
+import org.eclipse.collections.api.list.ImmutableList;
+
+/**
+ * @author lanyuanxiaoyao
+ * @date 2024-11-28
+ */
+public interface ListController {
+ String LIST = "/list";
+
+ AmisResponse> list() throws Exception;
+
+ AmisResponse> list(Query query) throws Exception;
+}
diff --git a/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/RemoveController.java b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/RemoveController.java
new file mode 100644
index 0000000..5cdf2b8
--- /dev/null
+++ b/service-ai/service-ai-web/src/main/java/com/lanyuanxiaoyao/service/ai/web/base/controller/RemoveController.java
@@ -0,0 +1,13 @@
+package com.lanyuanxiaoyao.service.ai.web.base.controller;
+
+import com.lanyuanxiaoyao.service.ai.core.entity.amis.AmisResponse;
+
+/**
+ * @author lanyuanxiaoyao
+ * @date 2024-11-28
+ */
+public interface RemoveController {
+ String REMOVE = "/remove/{id}";
+
+ AmisResponse