后端: - 新增 leai 模块:认证、Webhook、数据同步、定时对账 - 新增 LeaiConfig/RestTemplateConfig/SchedulingConfig 配置 - 新增 FlywayRepairConfig 处理迁移修复 - 新增 V5__leai_integration.sql 迁移脚本 - 扩展所有实体类添加 tenantId 等字段 - 更新 SecurityConfig 放行 leai 公开接口 - 添加 application-test.yml 测试环境配置 前端: - 添加乐读派认证 API (public.ts) - 优化 Generating.vue 生成页 - 添加 Playwright E2E 测试配置及依赖 - 添加测试 fixtures、utils、mock-h5.html - 添加 leai 模块完整 E2E 测试套件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
spring:
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://192.168.1.250:3306/competition_management?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
username: lesingle-creation-test
|
|
password: 8ErFZiPBGbyrTHsy
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 20
|
|
max-wait: 60000
|
|
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:192.168.1.250}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:QWErty123}
|
|
database: ${REDIS_DB:8}
|
|
timeout: 5000ms
|
|
lettuce:
|
|
pool:
|
|
max-active: 20
|
|
max-idle: 20
|
|
min-idle: 5
|
|
max-wait: -1ms
|
|
|
|
flyway:
|
|
clean-disabled: false
|
|
|
|
# 开发环境开启 SQL 日志
|
|
mybatis-plus:
|
|
configuration:
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
oss:
|
|
secret-id: ${COS_SECRET_ID:}
|
|
secret-key: ${COS_SECRET_KEY:}
|
|
bucket: ${COS_BUCKET:}
|
|
region: ${COS_REGION:ap-guangzhou}
|
|
url-prefix: ${COS_URL_PREFIX:}
|
|
|
|
logging:
|
|
level:
|
|
com.competition: debug
|
|
|
|
# 乐读派 AI 创作系统配置
|
|
leai:
|
|
org-id: ${LEAI_ORG_ID:gdlib}
|
|
app-secret: ${LEAI_APP_SECRET:leai_mnoi9q1a_mtcawrn8y}
|
|
api-url: ${LEAI_API_URL:http://192.168.1.72:8080}
|
|
h5-url: ${LEAI_H5_URL:http://192.168.1.72:3001}
|