feat(core): 完成AI项目管理平台基础模块开发
- 新增Spring Boot配置文件,支持多环境切换与数据库配置 - 集成PostgreSQL数据库和MyBatis Plus实现数据访问层 - 配置Spring AI和MinIO对象存储服务,支持文件上传下载功能 - 自定义错误码枚举,提供统一错误处理标准 - 实现MinIO客户端自动配置及服务端上传、下载和删除文件功能 - 开发OSS控制器及服务接口,实现文件管理API及文件存储操作 - 开发AI项目初始化模块,支持通过文本和文件生成结构化项目数据 - 设计项目初始化结果DTO,定义项目、里程碑、任务、成员、资源、风险等数据结构 - 实现项目初始化服务,调用AI聊天模型解析项目文档生成结构化输出 - 添加分页查询工具类,支持动态排序和分页参数构建 - 项目构建配置完善,集成必要依赖,支持Spring Boot 3和Java 17环境 - 代码结构规范,增加模块包说明及统一响应结果封装体系
This commit is contained in:
@@ -6,9 +6,9 @@ spring:
|
||||
|
||||
# PostgreSQL 数据库配置
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:5432/ylhp_ai_project_manager
|
||||
username: ${DB_USERNAME:postgres}
|
||||
password: ${DB_PASSWORD:postgres}
|
||||
url: jdbc:postgresql://10.200.8.25:5432/ylhp_ai_project_manager
|
||||
username: postgres
|
||||
password: postgres
|
||||
driver-class-name: org.postgresql.Driver
|
||||
hikari:
|
||||
maximum-pool-size: 10
|
||||
@@ -33,19 +33,19 @@ spring:
|
||||
# Spring AI 配置
|
||||
ai:
|
||||
openai:
|
||||
api-key: ${OPENAI_API_KEY:your-api-key}
|
||||
base-url: ${OPENAI_BASE_URL:https://api.openai.com}
|
||||
api-key: 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
|
||||
base-url: https://sg1.proxy.yinlihupo.cc/proxy/https://openrouter.ai/api/v1
|
||||
chat:
|
||||
options:
|
||||
model: ${OPENAI_MODEL:gpt-4o}
|
||||
model: gpt-4o
|
||||
temperature: 0.3
|
||||
|
||||
# MinIO 对象存储配置
|
||||
minio:
|
||||
endpoint: ${MINIO_ENDPOINT:http://localhost:9000}
|
||||
access-key: ${MINIO_ACCESS_KEY:minioadmin}
|
||||
secret-key: ${MINIO_SECRET_KEY:minioadmin}
|
||||
bucket-name: ${MINIO_BUCKET_NAME:ylhp-files}
|
||||
endpoint: 10.200.8.25:9000
|
||||
access-key: minioadmin
|
||||
secret-key: minioadmin
|
||||
bucket-name: ylhp-files
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
|
||||
@@ -6,4 +6,6 @@ spring:
|
||||
|
||||
# 公共配置
|
||||
server:
|
||||
port: 8080
|
||||
port: 8080
|
||||
servlet:
|
||||
context-path: /api/v1
|
||||
Reference in New Issue
Block a user