module-ai

This commit is contained in:
wol
2025-08-12 22:10:00 +08:00
parent 30f8584d33
commit cbaa3e7c42
4 changed files with 54 additions and 0 deletions
+5
View File
@@ -14,6 +14,11 @@
<artifactId>wol-common-web</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>wol-module-ai</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
+4
View File
@@ -9,5 +9,9 @@
<artifactId>wol-modules</artifactId>
<packaging>pom</packaging>
<modules>
<module>wol-module-ai</module>
</modules>
</project>
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.agileboot</groupId>
<artifactId>wol-modules</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>wol-module-ai</artifactId>
<dependencies>
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>wol-common-core</artifactId>
</dependency>
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>wol-common-web</artifactId>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,20 @@
package com.agileboot.ai.controller;
import com.agileboot.common.core.core.R;
import com.agileboot.common.core.exception.BizException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/ai")
public class AiController {
@GetMapping("/test")
public R<String> test() {
throw new BizException("test");
// return R.ok();
}
}