feat: 配置扩展与 PostgreSQL 连接池 #93
Owner
- 扩展 Config 结构体,新增 AuthConfig(JWTSecret, AccessTTL, RefreshTTL)
- 设置认证配置默认值:access_ttl=15分钟,refresh_ttl=10080分钟(7天)
- 实现 PostgreSQL 连接池 NewPostgresPool
- 编写 users 和 refresh_tokens 表的迁移脚本
- main.go 条件初始化 DB(storage.driver == postgres)
- 扩展 Config 结构体,新增 AuthConfig(JWTSecret, AccessTTL, RefreshTTL)
- 设置认证配置默认值:access_ttl=15分钟,refresh_ttl=10080分钟(7天)
- 实现 PostgreSQL 连接池 NewPostgresPool
- 编写 users 和 refresh_tokens 表的迁移脚本
- main.go 条件初始化 DB(storage.driver == postgres)
huanghaosheng
added 4 commits 2026-06-14 16:50:18 +08:00
Merge pull request 'feat: 配置扩展与 PostgreSQL 连接池' (#93) from feature/user-model-phase1 into develop
Reference in New Issue
Block a user
Delete Branch "feature/user-model-phase1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?