feat(api): 添加OSS和项目初始化相关接口
- 新增OssController,实现文件上传、指定存储桶上传和删除接口 - 添加ProjectController,实现文件上传并生成项目初始化数据接口 - 新增开发环境application-dev.yaml配置,包含数据库、MyBatis Plus、AI OpenAI、MinIO和日志配置 - 新增application.yaml,包含基础应用名及端口配置
This commit is contained in:
@@ -13,7 +13,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/oss")
|
||||
@RequestMapping("/api/v1/oss")
|
||||
@RequiredArgsConstructor
|
||||
public class OssController {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/project-init")
|
||||
@RequestMapping("/api/v1/project-init")
|
||||
@RequiredArgsConstructor
|
||||
public class ProjectController {
|
||||
|
||||
|
||||
@@ -30,11 +30,10 @@ spring:
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
|
||||
# Spring AI 配置
|
||||
ai:
|
||||
openai:
|
||||
api-key: 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
|
||||
base-url: https://sg1.proxy.yinlihupo.cc/proxy/https://openrouter.ai/api/v1
|
||||
base-url: https://sg1.proxy.yinlihupo.cc/proxy/https://openrouter.ai/api
|
||||
chat:
|
||||
options:
|
||||
model: google/gemini-2.5-flash
|
||||
|
||||
@@ -6,6 +6,4 @@ spring:
|
||||
|
||||
# 公共配置
|
||||
server:
|
||||
port: 8080
|
||||
servlet:
|
||||
context-path: /api/v1
|
||||
port: 8080
|
||||
Reference in New Issue
Block a user