feat: 添加.gitignore文件并清理编译产物
🔧 新增功能: - 添加完整的.gitignore文件,覆盖所有编译产物和临时文件 - 从Git跟踪中移除Maven target目录下的编译产物 - 从Git跟踪中移除日志文件和临时文件 📁 忽略文件类型: - Maven编译产物 (target/**, *.jar, *.war等) - 日志文件 (logs/, *.log, *.log.*) - IDE文件 (.idea/, *.iml, .vscode/等) - Node.js文件 (node_modules/, dist/, .env等) - 操作系统文件 (.DS_Store, Thumbs.db等) - 临时文件 (*.tmp, *.bak, *.swp等) - 部署包 (packages/, *.tar.gz, *.zip等) ✨ 优化效果: - 减少仓库大小,提高克隆速度 - 避免提交不必要的编译产物 - 保持仓库整洁,只包含源代码 - 防止敏感配置文件意外提交
This commit is contained in:
+299
@@ -0,0 +1,299 @@
|
|||||||
|
# 情感博物馆项目 .gitignore 文件
|
||||||
|
# 作者: emotion-museum
|
||||||
|
# 日期: 2025-07-18
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# Java / Maven 编译产物
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# Maven target 目录
|
||||||
|
**/target/
|
||||||
|
**/target/**
|
||||||
|
|
||||||
|
# Maven 编译产物
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
*.nar
|
||||||
|
|
||||||
|
# Maven 临时文件
|
||||||
|
**/maven-archiver/
|
||||||
|
**/maven-status/
|
||||||
|
**/generated-sources/
|
||||||
|
**/generated-test-sources/
|
||||||
|
|
||||||
|
# Spring Boot 编译产物
|
||||||
|
*.jar.original
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 日志文件
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 应用日志
|
||||||
|
**/logs/
|
||||||
|
**/logs/**
|
||||||
|
*.log
|
||||||
|
*.log.*
|
||||||
|
*.gz
|
||||||
|
|
||||||
|
# 特定日志文件
|
||||||
|
**/*-local.log
|
||||||
|
**/*-local.log.*
|
||||||
|
**/*-test.log
|
||||||
|
**/*-test.log.*
|
||||||
|
**/*-prod.log
|
||||||
|
**/*-prod.log.*
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# IDE 相关文件
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# IntelliJ IDEA
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
out/
|
||||||
|
|
||||||
|
# Eclipse
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
|
bin/
|
||||||
|
|
||||||
|
# VS Code
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# NetBeans
|
||||||
|
nbproject/
|
||||||
|
build/
|
||||||
|
nbbuild/
|
||||||
|
dist/
|
||||||
|
nbdist/
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# Node.js / 前端编译产物
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 依赖目录
|
||||||
|
**/node_modules/
|
||||||
|
**/node_modules/**
|
||||||
|
|
||||||
|
# 构建产物
|
||||||
|
**/dist/
|
||||||
|
**/build/
|
||||||
|
|
||||||
|
# npm/yarn 缓存
|
||||||
|
.npm
|
||||||
|
.yarn-integrity
|
||||||
|
yarn-error.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# 环境变量文件
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 操作系统相关文件
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Linux
|
||||||
|
*~
|
||||||
|
.nfs*
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 临时文件和缓存
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 临时文件
|
||||||
|
*.tmp
|
||||||
|
*.temp
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
|
||||||
|
# 备份文件
|
||||||
|
*.bak
|
||||||
|
*.backup
|
||||||
|
*.orig
|
||||||
|
|
||||||
|
# 缓存目录
|
||||||
|
.cache/
|
||||||
|
cache/
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 数据库相关
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 数据库文件
|
||||||
|
*.db
|
||||||
|
*.sqlite
|
||||||
|
*.sqlite3
|
||||||
|
|
||||||
|
# 数据库备份
|
||||||
|
*.sql.bak
|
||||||
|
*.dump
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# Docker 相关
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# Docker 临时文件
|
||||||
|
.dockerignore.bak
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 部署相关临时文件
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 部署包
|
||||||
|
packages/
|
||||||
|
build-output/
|
||||||
|
|
||||||
|
# 部署临时文件
|
||||||
|
*.tar.gz
|
||||||
|
*.zip
|
||||||
|
*.sha256
|
||||||
|
*_REPORT.txt
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 测试相关
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 测试报告
|
||||||
|
**/test-results/
|
||||||
|
**/coverage/
|
||||||
|
*.lcov
|
||||||
|
|
||||||
|
# JUnit 测试报告
|
||||||
|
**/surefire-reports/
|
||||||
|
**/failsafe-reports/
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 配置文件备份
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 配置文件备份
|
||||||
|
*.yml.bak
|
||||||
|
*.yaml.bak
|
||||||
|
*.properties.bak
|
||||||
|
*.xml.bak
|
||||||
|
*.json.bak
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 其他忽略文件
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 编辑器临时文件
|
||||||
|
.vimrc
|
||||||
|
.vim/
|
||||||
|
|
||||||
|
# 系统文件
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
|
||||||
|
# 运行时文件
|
||||||
|
pids
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
|
||||||
|
# 覆盖率报告
|
||||||
|
coverage/
|
||||||
|
*.lcov
|
||||||
|
|
||||||
|
# nyc 测试覆盖率
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt 中间存储
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower 依赖目录
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf 配置
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# 编译的二进制插件
|
||||||
|
build/Release
|
||||||
|
|
||||||
|
# 依赖目录
|
||||||
|
jspm_packages/
|
||||||
|
|
||||||
|
# TypeScript v1 声明文件
|
||||||
|
typings/
|
||||||
|
|
||||||
|
# 可选的 npm 缓存目录
|
||||||
|
.npm
|
||||||
|
|
||||||
|
# 可选的 eslint 缓存
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# Microbundle 缓存
|
||||||
|
.rpt2_cache/
|
||||||
|
.rts2_cache_cjs/
|
||||||
|
.rts2_cache_es/
|
||||||
|
.rts2_cache_umd/
|
||||||
|
|
||||||
|
# 可选的 REPL 历史
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# 输出的 npm 包
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Yarn 完整性文件
|
||||||
|
.yarn-integrity
|
||||||
|
|
||||||
|
# parcel-bundler 缓存
|
||||||
|
.parcel-cache
|
||||||
|
|
||||||
|
# Next.js 构建输出
|
||||||
|
.next
|
||||||
|
|
||||||
|
# Nuxt.js 构建/生成输出
|
||||||
|
.nuxt
|
||||||
|
dist
|
||||||
|
|
||||||
|
# Gatsby 文件
|
||||||
|
.cache/
|
||||||
|
public
|
||||||
|
|
||||||
|
# Storybook 构建输出
|
||||||
|
.out
|
||||||
|
.storybook-out
|
||||||
|
|
||||||
|
# Temporary folders
|
||||||
|
tmp/
|
||||||
|
temp/
|
||||||
|
|
||||||
|
# ================================
|
||||||
|
# 项目特定忽略
|
||||||
|
# ================================
|
||||||
|
|
||||||
|
# 情感博物馆特定临时文件
|
||||||
|
emotion-museum-*.tar.gz
|
||||||
|
emotion-museum-*.zip
|
||||||
|
|
||||||
|
# 本地开发配置
|
||||||
|
application-local.yml.bak
|
||||||
|
*-local.yml.bak
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,89 +0,0 @@
|
|||||||
# AI服务 Docker环境配置
|
|
||||||
server:
|
|
||||||
port: 9002
|
|
||||||
|
|
||||||
spring:
|
|
||||||
application:
|
|
||||||
name: emotion-ai
|
|
||||||
profiles:
|
|
||||||
active: docker
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: ${NACOS_SERVER_ADDR:nacos:8848}
|
|
||||||
namespace: public
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
config:
|
|
||||||
server-addr: ${NACOS_SERVER_ADDR:nacos:8848}
|
|
||||||
file-extension: yml
|
|
||||||
namespace: public
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
datasource:
|
|
||||||
url: jdbc:mysql://${MYSQL_HOST:mysql}:${MYSQL_PORT:3306}/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
hikari:
|
|
||||||
pool-name: EmotionAiHikariCP
|
|
||||||
minimum-idle: 5
|
|
||||||
maximum-pool-size: 20
|
|
||||||
auto-commit: true
|
|
||||||
idle-timeout: 30000
|
|
||||||
max-lifetime: 1800000
|
|
||||||
connection-timeout: 30000
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: ${REDIS_HOST:redis}
|
|
||||||
port: ${REDIS_PORT:6379}
|
|
||||||
password:
|
|
||||||
database: 1
|
|
||||||
timeout: 6000ms
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
max-active: 8
|
|
||||||
max-wait: -1ms
|
|
||||||
max-idle: 8
|
|
||||||
min-idle: 0
|
|
||||||
|
|
||||||
# MyBatis Plus配置
|
|
||||||
mybatis-plus:
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
cache-enabled: false
|
|
||||||
call-setters-on-nulls: true
|
|
||||||
jdbc-type-for-null: 'null'
|
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
global-config:
|
|
||||||
db-config:
|
|
||||||
id-type: assign_uuid
|
|
||||||
logic-delete-field: isDeleted
|
|
||||||
logic-delete-value: 1
|
|
||||||
logic-not-delete-value: 0
|
|
||||||
banner: false
|
|
||||||
|
|
||||||
# Coze API配置
|
|
||||||
coze:
|
|
||||||
api:
|
|
||||||
base-url: https://api.coze.cn
|
|
||||||
token: ${COZE_API_TOKEN:your-coze-api-token}
|
|
||||||
bot-id: 7523042446285439016
|
|
||||||
workflow-id: 7523047462895796287
|
|
||||||
timeout: 30000
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: DEBUG
|
|
||||||
com.emotionmuseum.ai.mapper: DEBUG
|
|
||||||
pattern:
|
|
||||||
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n"
|
|
||||||
|
|
||||||
# 管理端点
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: health,info,metrics,prometheus
|
|
||||||
endpoint:
|
|
||||||
health:
|
|
||||||
show-details: always
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# 本地开发环境配置
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
namespace:
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
enabled: true
|
|
||||||
username: nacos
|
|
||||||
password: Peanut2817*#
|
|
||||||
metadata:
|
|
||||||
version: 1.0.0
|
|
||||||
zone: local
|
|
||||||
register-enabled: true
|
|
||||||
ephemeral: true
|
|
||||||
cluster-name: DEFAULT
|
|
||||||
service: ${spring.application.name}
|
|
||||||
weight: 1
|
|
||||||
heart-beat-interval: 5000
|
|
||||||
heart-beat-timeout: 15000
|
|
||||||
ip-delete-timeout: 30000
|
|
||||||
config:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
namespace:
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
file-extension: yml
|
|
||||||
enabled: false
|
|
||||||
username: nacos
|
|
||||||
password: Peanut2817*#
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
password:
|
|
||||||
database: 0
|
|
||||||
|
|
||||||
# Coze平台配置
|
|
||||||
coze:
|
|
||||||
base-url: https://api.coze.cn
|
|
||||||
api-key: your-coze-api-key
|
|
||||||
bot-id: 7523042446285439016
|
|
||||||
workflow-id: 7523047462895796287
|
|
||||||
user-id: emotion-museum-user
|
|
||||||
token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO
|
|
||||||
timeout: 60
|
|
||||||
max-retries: 3
|
|
||||||
stream: false
|
|
||||||
model:
|
|
||||||
temperature: 0.7
|
|
||||||
max-tokens: 1000
|
|
||||||
top-p: 0.9
|
|
||||||
frequency-penalty: 0.0
|
|
||||||
presence-penalty: 0.0
|
|
||||||
|
|
||||||
# 功能开关配置
|
|
||||||
features:
|
|
||||||
emotion-analysis:
|
|
||||||
enabled: false
|
|
||||||
auto-analyze: false
|
|
||||||
chat:
|
|
||||||
enabled: true
|
|
||||||
stream: false
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: debug
|
|
||||||
com.baomidou.mybatisplus: debug
|
|
||||||
com.alibaba.nacos: info
|
|
||||||
file:
|
|
||||||
name: logs/emotion-ai-local.log
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# 本地开发环境配置
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
namespace:
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
enabled: true
|
|
||||||
username: nacos
|
|
||||||
password: nacos
|
|
||||||
metadata:
|
|
||||||
version: 1.0.0
|
|
||||||
zone: local
|
|
||||||
register-enabled: true
|
|
||||||
ephemeral: true
|
|
||||||
cluster-name: DEFAULT
|
|
||||||
service: ${spring.application.name}
|
|
||||||
weight: 1
|
|
||||||
heart-beat-interval: 5000
|
|
||||||
heart-beat-timeout: 15000
|
|
||||||
ip-delete-timeout: 30000
|
|
||||||
config:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
namespace:
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
file-extension: yml
|
|
||||||
enabled: false
|
|
||||||
username: nacos
|
|
||||||
password: nacos
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
password:
|
|
||||||
database: 0
|
|
||||||
|
|
||||||
# Coze平台配置
|
|
||||||
coze:
|
|
||||||
base-url: https://api.coze.cn
|
|
||||||
api-key: your-coze-api-key
|
|
||||||
bot-id: 7523042446285439016
|
|
||||||
workflow-id: 7523047462895796287
|
|
||||||
user-id: emotion-museum-user
|
|
||||||
token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO
|
|
||||||
timeout: 60
|
|
||||||
max-retries: 3
|
|
||||||
stream: false
|
|
||||||
model:
|
|
||||||
temperature: 0.7
|
|
||||||
max-tokens: 1000
|
|
||||||
top-p: 0.9
|
|
||||||
frequency-penalty: 0.0
|
|
||||||
presence-penalty: 0.0
|
|
||||||
|
|
||||||
# 功能开关配置
|
|
||||||
features:
|
|
||||||
emotion-analysis:
|
|
||||||
enabled: false
|
|
||||||
auto-analyze: false
|
|
||||||
chat:
|
|
||||||
enabled: true
|
|
||||||
stream: false
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: debug
|
|
||||||
com.baomidou.mybatisplus: debug
|
|
||||||
com.alibaba.nacos: info
|
|
||||||
file:
|
|
||||||
name: logs/emotion-ai-local.log
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
# 生产环境配置
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: 47.111.10.27:8848
|
|
||||||
namespace: prod
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
enabled: true
|
|
||||||
username: nacos
|
|
||||||
password: EmotionMuseum2025
|
|
||||||
metadata:
|
|
||||||
version: 1.0.0
|
|
||||||
zone: prod
|
|
||||||
register-enabled: true
|
|
||||||
ephemeral: true
|
|
||||||
cluster-name: DEFAULT
|
|
||||||
service: ${spring.application.name}
|
|
||||||
weight: 1
|
|
||||||
heart-beat-interval: 5000
|
|
||||||
heart-beat-timeout: 15000
|
|
||||||
ip-delete-timeout: 30000
|
|
||||||
config:
|
|
||||||
server-addr: 47.111.10.27:8848
|
|
||||||
namespace: prod
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
file-extension: yml
|
|
||||||
enabled: false
|
|
||||||
username: nacos
|
|
||||||
password: EmotionMuseum2025
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://47.111.10.27:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: root
|
|
||||||
password: EmotionMuseum2025*#
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: 47.111.10.27
|
|
||||||
port: 6379
|
|
||||||
password: EmotionMuseum2025*#
|
|
||||||
database: 0
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: warn
|
|
||||||
com.baomidou.mybatisplus: warn
|
|
||||||
com.alibaba.nacos: error
|
|
||||||
file:
|
|
||||||
name: logs/emotion-ai-prod.log
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
# 测试环境配置
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: 47.111.10.27:8848
|
|
||||||
namespace: test
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
enabled: true
|
|
||||||
username: nacos
|
|
||||||
password: EmotionMuseum2025
|
|
||||||
metadata:
|
|
||||||
version: 1.0.0
|
|
||||||
zone: test
|
|
||||||
register-enabled: true
|
|
||||||
ephemeral: true
|
|
||||||
cluster-name: DEFAULT
|
|
||||||
service: ${spring.application.name}
|
|
||||||
weight: 1
|
|
||||||
heart-beat-interval: 5000
|
|
||||||
heart-beat-timeout: 15000
|
|
||||||
ip-delete-timeout: 30000
|
|
||||||
config:
|
|
||||||
server-addr: 47.111.10.27:8848
|
|
||||||
namespace: test
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
file-extension: yml
|
|
||||||
enabled: false
|
|
||||||
username: nacos
|
|
||||||
password: EmotionMuseum2025
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://47.111.10.27:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: root
|
|
||||||
password: EmotionMuseum2025*#
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: 47.111.10.27
|
|
||||||
port: 6379
|
|
||||||
password: EmotionMuseum2025*#
|
|
||||||
database: 0
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: info
|
|
||||||
com.baomidou.mybatisplus: info
|
|
||||||
com.alibaba.nacos: warn
|
|
||||||
file:
|
|
||||||
name: logs/emotion-ai-test.log
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
server:
|
|
||||||
port: 19002
|
|
||||||
|
|
||||||
spring:
|
|
||||||
application:
|
|
||||||
name: emotion-ai
|
|
||||||
|
|
||||||
# 配置文件激活
|
|
||||||
profiles:
|
|
||||||
active: ${SPRING_PROFILES_ACTIVE:local}
|
|
||||||
|
|
||||||
# 允许Bean覆盖和循环引用
|
|
||||||
main:
|
|
||||||
allow-bean-definition-overriding: true
|
|
||||||
allow-circular-references: true
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:emotion_museum}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
||||||
username: ${MYSQL_USERNAME:root}
|
|
||||||
password: ${MYSQL_PASSWORD:123456}
|
|
||||||
hikari:
|
|
||||||
minimum-idle: 5
|
|
||||||
maximum-pool-size: 20
|
|
||||||
idle-timeout: 30000
|
|
||||||
max-lifetime: 1800000
|
|
||||||
connection-timeout: 30000
|
|
||||||
connection-test-query: SELECT 1
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: ${REDIS_HOST:localhost}
|
|
||||||
port: ${REDIS_PORT:6379}
|
|
||||||
password: ${REDIS_PASSWORD:}
|
|
||||||
database: 1
|
|
||||||
timeout: 10000ms
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
max-active: 8
|
|
||||||
max-wait: -1ms
|
|
||||||
max-idle: 8
|
|
||||||
min-idle: 0
|
|
||||||
# Nacos配置
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: ${NACOS_HOST:localhost}:${NACOS_PORT:8848}
|
|
||||||
namespace: ${NACOS_NAMESPACE:}
|
|
||||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
|
||||||
enabled: ${NACOS_DISCOVERY_ENABLED:false}
|
|
||||||
config:
|
|
||||||
server-addr: ${NACOS_HOST:localhost}:${NACOS_PORT:8848}
|
|
||||||
namespace: ${NACOS_NAMESPACE:}
|
|
||||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
|
||||||
file-extension: yml
|
|
||||||
enabled: ${NACOS_CONFIG_ENABLED:false}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Coze平台配置
|
|
||||||
coze:
|
|
||||||
base-url: ${COZE_BASE_URL:https://api.coze.cn}
|
|
||||||
api-key: ${COZE_API_KEY:your-coze-api-key}
|
|
||||||
bot-id: ${COZE_BOT_ID:7523042446285439016}
|
|
||||||
workflow-id: ${COZE_WORKFLOW_ID:7523047462895796287}
|
|
||||||
user-id: ${COZE_USER_ID:emotion-museum-user}
|
|
||||||
token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO
|
|
||||||
timeout: 60
|
|
||||||
max-retries: 3
|
|
||||||
stream: false
|
|
||||||
model:
|
|
||||||
temperature: 0.7
|
|
||||||
max-tokens: 1000
|
|
||||||
top-p: 0.9
|
|
||||||
frequency-penalty: 0.0
|
|
||||||
presence-penalty: 0.0
|
|
||||||
|
|
||||||
# 功能开关配置
|
|
||||||
features:
|
|
||||||
emotion-analysis:
|
|
||||||
enabled: ${EMOTION_ANALYSIS_ENABLED:false} # 暂时禁用情绪分析
|
|
||||||
auto-analyze: false # 禁用自动情绪分析
|
|
||||||
chat:
|
|
||||||
enabled: true
|
|
||||||
stream: false
|
|
||||||
|
|
||||||
# MyBatis Plus配置
|
|
||||||
mybatis-plus:
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
cache-enabled: false
|
|
||||||
call-setters-on-nulls: true
|
|
||||||
jdbc-type-for-null: 'null'
|
|
||||||
global-config:
|
|
||||||
db-config:
|
|
||||||
id-type: ASSIGN_UUID
|
|
||||||
logic-delete-field: is_deleted
|
|
||||||
logic-delete-value: 1
|
|
||||||
logic-not-delete-value: 0
|
|
||||||
mapper-locations: classpath*:/mapper/**/*.xml
|
|
||||||
|
|
||||||
# 监控配置
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: health,info,metrics,prometheus
|
|
||||||
endpoint:
|
|
||||||
health:
|
|
||||||
show-details: always
|
|
||||||
metrics:
|
|
||||||
export:
|
|
||||||
prometheus:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: debug
|
|
||||||
com.baomidou.mybatisplus: debug
|
|
||||||
com.emotionmuseum.common.handler.MetaObjectHandler: debug
|
|
||||||
com.emotionmuseum.common.interceptor.UserContextInterceptor: debug
|
|
||||||
pattern:
|
|
||||||
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n"
|
|
||||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
artifactId=emotion-ai
|
|
||||||
groupId=com.emotionmuseum
|
|
||||||
version=1.0.0
|
|
||||||
-47
@@ -1,47 +0,0 @@
|
|||||||
com/emotionmuseum/ai/dto/CreateConversationResponse.class
|
|
||||||
com/emotionmuseum/ai/dto/CreateConversationRequest.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse$EmotionAnalysisResult$EmotionAnalysisResultBuilder.class
|
|
||||||
com/emotionmuseum/ai/service/ConversationDbService.class
|
|
||||||
com/emotionmuseum/ai/config/FeatureConfig.class
|
|
||||||
com/emotionmuseum/ai/entity/GuestUser.class
|
|
||||||
com/emotionmuseum/ai/service/GuestUserService.class
|
|
||||||
com/emotionmuseum/ai/config/FeatureConfig$Chat.class
|
|
||||||
com/emotionmuseum/ai/dto/MessageListResponse$MessageListResponseBuilder.class
|
|
||||||
com/emotionmuseum/ai/service/GuestChatService.class
|
|
||||||
com/emotionmuseum/ai/controller/GuestChatController.class
|
|
||||||
com/emotionmuseum/ai/dto/ChatResponse$Usage.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse.class
|
|
||||||
com/emotionmuseum/ai/config/AiConfig.class
|
|
||||||
com/emotionmuseum/ai/dto/EmotionAnalysisResponse.class
|
|
||||||
com/emotionmuseum/ai/entity/Conversation.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestUserInfo.class
|
|
||||||
com/emotionmuseum/ai/service/impl/GuestUserServiceImpl.class
|
|
||||||
com/emotionmuseum/ai/dto/EmotionAnalysisRequest.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestUserInfo$GuestUserInfoBuilder.class
|
|
||||||
com/emotionmuseum/ai/dto/ConversationListResponse.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse$TokenUsage$TokenUsageBuilder.class
|
|
||||||
com/emotionmuseum/ai/service/impl/ConversationDbServiceImpl.class
|
|
||||||
com/emotionmuseum/ai/service/impl/AiChatServiceImpl.class
|
|
||||||
com/emotionmuseum/ai/controller/AiChatController.class
|
|
||||||
com/emotionmuseum/ai/dto/ChatResponse.class
|
|
||||||
com/emotionmuseum/ai/dto/ChatRequest.class
|
|
||||||
com/emotionmuseum/ai/config/FeatureConfig$EmotionAnalysis.class
|
|
||||||
com/emotionmuseum/ai/dto/EmotionAnalysisResponse$EmotionScore.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse$EmotionAnalysisResult.class
|
|
||||||
com/emotionmuseum/ai/entity/Message.class
|
|
||||||
com/emotionmuseum/ai/dto/MessageListResponse.class
|
|
||||||
com/emotionmuseum/ai/entity/CozeApiCall.class
|
|
||||||
com/emotionmuseum/ai/service/impl/GuestChatServiceImpl.class
|
|
||||||
com/emotionmuseum/ai/service/impl/AiChatServiceImpl$ChatCompletionResult.class
|
|
||||||
com/emotionmuseum/ai/service/AiChatService.class
|
|
||||||
com/emotionmuseum/ai/dto/ConversationListResponse$ConversationListResponseBuilder.class
|
|
||||||
com/emotionmuseum/ai/mapper/GuestUserMapper.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse$GuestChatResponseBuilder.class
|
|
||||||
com/emotionmuseum/ai/mapper/CozeApiCallMapper.class
|
|
||||||
com/emotionmuseum/ai/entity/EmotionAnalysis.class
|
|
||||||
com/emotionmuseum/ai/mapper/MessageMapper.class
|
|
||||||
com/emotionmuseum/ai/mapper/ConversationMapper.class
|
|
||||||
com/emotionmuseum/ai/AiApplication.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatRequest.class
|
|
||||||
com/emotionmuseum/ai/dto/ChatRequest$ChatMessage.class
|
|
||||||
com/emotionmuseum/ai/dto/GuestChatResponse$TokenUsage.class
|
|
||||||
-33
@@ -1,33 +0,0 @@
|
|||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/CreateConversationRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/Conversation.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/ChatResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/ConversationDbService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/impl/ConversationDbServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/controller/AiChatController.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/impl/GuestChatServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/GuestUser.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/Message.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/mapper/GuestUserMapper.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/MessageListResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/impl/GuestUserServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/GuestUserService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/ChatRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/EmotionAnalysisRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/GuestChatResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/CreateConversationResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/AiChatService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/mapper/MessageMapper.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/impl/AiChatServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/GuestChatRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/mapper/CozeApiCallMapper.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/CozeApiCall.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/AiApplication.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/EmotionAnalysis.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/ConversationListResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/GuestUserInfo.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/dto/EmotionAnalysisResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/mapper/ConversationMapper.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/controller/GuestChatController.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/config/AiConfig.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/service/GuestChatService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/main/java/com/emotionmuseum/ai/config/FeatureConfig.java
|
|
||||||
-1
@@ -1 +0,0 @@
|
|||||||
com/emotionmuseum/ai/service/MessageSplitTest.class
|
|
||||||
-1
@@ -1 +0,0 @@
|
|||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/test/java/com/emotionmuseum/ai/service/MessageSplitTest.java
|
|
||||||
BIN
Binary file not shown.
@@ -1,143 +0,0 @@
|
|||||||
server:
|
|
||||||
port: 19001
|
|
||||||
servlet:
|
|
||||||
context-path: /
|
|
||||||
|
|
||||||
spring:
|
|
||||||
application:
|
|
||||||
name: emotion-auth
|
|
||||||
profiles:
|
|
||||||
active: ${SPRING_PROFILES_ACTIVE:local}
|
|
||||||
|
|
||||||
# 数据源配置
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:emotion_museum}?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
||||||
username: ${MYSQL_USERNAME:root}
|
|
||||||
password: ${MYSQL_PASSWORD:EmotionMuseum2025*#}
|
|
||||||
|
|
||||||
# 连接池配置
|
|
||||||
hikari:
|
|
||||||
minimum-idle: 5
|
|
||||||
maximum-pool-size: 20
|
|
||||||
idle-timeout: 300000
|
|
||||||
connection-timeout: 20000
|
|
||||||
max-lifetime: 1200000
|
|
||||||
pool-name: EmotionAuthHikariCP
|
|
||||||
|
|
||||||
# Redis配置
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: ${REDIS_HOST:localhost}
|
|
||||||
port: ${REDIS_PORT:6379}
|
|
||||||
password: ${REDIS_PASSWORD:}
|
|
||||||
database: ${REDIS_DATABASE:0}
|
|
||||||
timeout: 5000ms
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
max-active: 20
|
|
||||||
max-idle: 10
|
|
||||||
min-idle: 5
|
|
||||||
max-wait: 2000ms
|
|
||||||
|
|
||||||
# 云服务配置
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
enabled: false
|
|
||||||
config:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# MyBatis Plus配置
|
|
||||||
mybatis-plus:
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
global-config:
|
|
||||||
db-config:
|
|
||||||
id-type: assign_uuid
|
|
||||||
logic-delete-field: deleted
|
|
||||||
logic-delete-value: 1
|
|
||||||
logic-not-delete-value: 0
|
|
||||||
|
|
||||||
# 监控配置
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: health,info,metrics,prometheus
|
|
||||||
endpoint:
|
|
||||||
health:
|
|
||||||
show-details: always
|
|
||||||
metrics:
|
|
||||||
export:
|
|
||||||
prometheus:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
# 日志配置
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
com.emotionmuseum: debug
|
|
||||||
com.baomidou.mybatisplus: debug
|
|
||||||
pattern:
|
|
||||||
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n"
|
|
||||||
|
|
||||||
# JWT配置
|
|
||||||
jwt:
|
|
||||||
secret: emotion-museum-secret-key-2025
|
|
||||||
expiration: 86400
|
|
||||||
refresh-expiration: 604800
|
|
||||||
|
|
||||||
# 验证码配置
|
|
||||||
captcha:
|
|
||||||
type: arithmetic
|
|
||||||
length: 4
|
|
||||||
expire-time: 300
|
|
||||||
|
|
||||||
# OAuth配置
|
|
||||||
oauth:
|
|
||||||
wechat:
|
|
||||||
client-id: ${WECHAT_CLIENT_ID:}
|
|
||||||
client-secret: ${WECHAT_CLIENT_SECRET:}
|
|
||||||
redirect-uri: ${WECHAT_REDIRECT_URI:}
|
|
||||||
qq:
|
|
||||||
client-id: ${QQ_CLIENT_ID:}
|
|
||||||
client-secret: ${QQ_CLIENT_SECRET:}
|
|
||||||
redirect-uri: ${QQ_REDIRECT_URI:}
|
|
||||||
|
|
||||||
---
|
|
||||||
# 本地开发环境配置
|
|
||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: local
|
|
||||||
datasource:
|
|
||||||
url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
discovery:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
config:
|
|
||||||
server-addr: localhost:8848
|
|
||||||
|
|
||||||
---
|
|
||||||
# 测试环境配置
|
|
||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: test
|
|
||||||
datasource:
|
|
||||||
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
||||||
|
|
||||||
---
|
|
||||||
# 生产环境配置
|
|
||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: prod
|
|
||||||
datasource:
|
|
||||||
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.emotionmuseum.auth.mapper.UserMapper">
|
|
||||||
|
|
||||||
<!-- 根据账号查询用户 -->
|
|
||||||
<select id="selectByAccount" resultType="com.emotionmuseum.auth.entity.User">
|
|
||||||
SELECT * FROM user
|
|
||||||
WHERE account = #{account} AND is_deleted = 0
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 根据邮箱查询用户 -->
|
|
||||||
<select id="selectByEmail" resultType="com.emotionmuseum.auth.entity.User">
|
|
||||||
SELECT * FROM user
|
|
||||||
WHERE email = #{email} AND is_deleted = 0
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 根据手机号查询用户 -->
|
|
||||||
<select id="selectByPhone" resultType="com.emotionmuseum.auth.entity.User">
|
|
||||||
SELECT * FROM user
|
|
||||||
WHERE phone = #{phone} AND is_deleted = 0
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 根据第三方登录信息查询用户 -->
|
|
||||||
<select id="selectByOAuth" resultType="com.emotionmuseum.auth.entity.User">
|
|
||||||
SELECT * FROM user
|
|
||||||
WHERE oauth_platform = #{platform} AND oauth_id = #{oauthId} AND is_deleted = 0
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 更新最后活跃时间 -->
|
|
||||||
<update id="updateLastActiveTime">
|
|
||||||
UPDATE user
|
|
||||||
SET last_active_time = NOW(), update_time = NOW()
|
|
||||||
WHERE id = #{userId} AND is_deleted = 0
|
|
||||||
</update>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
artifactId=emotion-auth
|
|
||||||
groupId=com.emotionmuseum
|
|
||||||
version=1.0.0
|
|
||||||
-30
@@ -1,30 +0,0 @@
|
|||||||
com/emotionmuseum/auth/dto/RegisterRequest.class
|
|
||||||
com/emotionmuseum/auth/entity/User.class
|
|
||||||
com/emotionmuseum/auth/controller/OAuthController.class
|
|
||||||
com/emotionmuseum/auth/config/CaptchaConfig.class
|
|
||||||
com/emotionmuseum/auth/service/impl/AuthServiceImpl.class
|
|
||||||
com/emotionmuseum/auth/service/CaptchaService.class
|
|
||||||
com/emotionmuseum/auth/AuthApplication.class
|
|
||||||
com/emotionmuseum/auth/service/SliderCaptchaService.class
|
|
||||||
com/emotionmuseum/auth/dto/CaptchaResponse.class
|
|
||||||
com/emotionmuseum/auth/security/UserDetailsServiceImpl.class
|
|
||||||
com/emotionmuseum/auth/service/impl/CaptchaServiceImpl.class
|
|
||||||
com/emotionmuseum/auth/service/impl/SliderCaptchaServiceImpl$SliderCaptchaData.class
|
|
||||||
com/emotionmuseum/auth/vo/UserInfoResponse$GrowthStatsVO.class
|
|
||||||
com/emotionmuseum/auth/vo/UserInfoResponse.class
|
|
||||||
com/emotionmuseum/auth/dto/LoginRequest.class
|
|
||||||
com/emotionmuseum/auth/dto/SliderCaptchaResponse.class
|
|
||||||
com/emotionmuseum/auth/vo/LoginResponse.class
|
|
||||||
com/emotionmuseum/auth/dto/SliderCaptchaVerifyRequest.class
|
|
||||||
com/emotionmuseum/auth/controller/CaptchaController.class
|
|
||||||
com/emotionmuseum/auth/controller/AuthController.class
|
|
||||||
com/emotionmuseum/auth/config/OAuthConfig.class
|
|
||||||
com/emotionmuseum/auth/security/JwtAuthenticationFilter.class
|
|
||||||
com/emotionmuseum/auth/config/SecurityConfig.class
|
|
||||||
com/emotionmuseum/auth/service/OAuthService.class
|
|
||||||
com/emotionmuseum/auth/mapper/UserMapper.class
|
|
||||||
com/emotionmuseum/auth/dto/OAuthLoginRequest.class
|
|
||||||
com/emotionmuseum/auth/config/RedisConfig.class
|
|
||||||
com/emotionmuseum/auth/security/UserDetailsServiceImpl$SecurityUser.class
|
|
||||||
com/emotionmuseum/auth/service/impl/SliderCaptchaServiceImpl.class
|
|
||||||
com/emotionmuseum/auth/service/AuthService.class
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/SliderCaptchaResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/SliderCaptchaVerifyRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/impl/CaptchaServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/config/SecurityConfig.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/CaptchaService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/config/CaptchaConfig.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/config/RedisConfig.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/OAuthLoginRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/LoginRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/SliderCaptchaService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/security/JwtAuthenticationFilter.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/entity/User.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/OAuthService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/security/UserDetailsServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/CaptchaResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/controller/OAuthController.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/vo/UserInfoResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/AuthService.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/controller/AuthController.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/AuthApplication.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/impl/AuthServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/vo/LoginResponse.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/controller/CaptchaController.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/service/impl/SliderCaptchaServiceImpl.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/dto/RegisterRequest.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/mapper/UserMapper.java
|
|
||||||
/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-auth/src/main/java/com/emotionmuseum/auth/config/OAuthConfig.java
|
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user