zhangjf 281bbc992d feat: 实现资金平台核心功能模块
## 新增功能

### Gateway增强 (P0)
- GlobalLogFilter: 全局日志过滤器,生成TraceId
- JwtAuthFilter: JWT鉴权过滤器,白名单机制
- RateLimitConfig: 基于Redis的限流配置

### 权限管理模块 (P1/P3)
- A.1 用户管理: UserDTO/UserVO/UserService/UserController
- A.2 角色管理: RoleDTO/RoleVO/RoleService/RoleController
- A.3 菜单管理: MenuDTO/MenuVO/MenuService/MenuController
- A.4 部门管理: DeptDTO/DeptVO/DeptService/DeptController

### 业务模块 (P1/P3)
- B.1 fund-req用款申请: 完整审批流程
- B.2 fund-exp支出管理: 支付确认流程
- B.3 fund-receipt收款管理: 确认核销流程

### 服务治理 (P1/P2)
- D.1 Nacos服务注册: 所有服务集成Nacos
- I.1 Redis缓存: RedisService/RedisConfig
- E.1 ELK日志: logback-spring.xml JSON格式

## 技术栈
- Spring Cloud Gateway 4.0.0
- Spring Cloud Alibaba 2023.0.0
- MyBatis-Plus 3.5.5
- JWT (jjwt 0.11.5)
- Redis + Lettuce
2026-02-17 14:30:04 +08:00

96 lines
2.1 KiB
YAML

server:
port: 8080
spring:
application:
name: fund-gateway
# Redis配置(用于限流)
data:
redis:
host: localhost
port: 6379
password: zjf@123456
database: 1
cloud:
compatibility-verifier:
enabled: false
gateway:
# 默认限流配置
default-filters:
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 100 # 每秒补充令牌数
redis-rate-limiter.burstCapacity: 200 # 令牌桶最大容量
key-resolver: "#{@ipKeyResolver}"
routes:
# 系统管理服务
- id: fund-sys
uri: http://localhost:8100
predicates:
- Path=/sys/**
filters:
- StripPrefix=1
# 客户管理服务
- id: fund-cust
uri: http://localhost:8110
predicates:
- Path=/cust/**
filters:
- StripPrefix=1
# 项目管理服务
- id: fund-proj
uri: http://localhost:8120
predicates:
- Path=/proj/**
filters:
- StripPrefix=1
# 用款申请服务
- id: fund-req
uri: http://localhost:8130
predicates:
- Path=/req/**
filters:
- StripPrefix=1
# 支出管理服务
- id: fund-exp
uri: http://localhost:8140
predicates:
- Path=/exp/**
filters:
- StripPrefix=1
# 收款管理服务
- id: fund-receipt
uri: http://localhost:8150
predicates:
- Path=/receipt/**
filters:
- StripPrefix=1
# 报表服务
- id: fund-report
uri: http://localhost:8160
predicates:
- Path=/report/**
filters:
- StripPrefix=1
# 文件服务
- id: fund-file
uri: http://localhost:8170
predicates:
- Path=/file/**
filters:
- StripPrefix=1
logging:
level:
org.springframework.cloud.gateway: DEBUG