Commit Graph

30 Commits

Author SHA1 Message Date
d271c81de7 feat: 更新用户组和选项模型,优化存储信息获取逻辑 2025-12-18 14:27:41 +08:00
8d2658b166 refactor: 移除 UserAuthn 模型中的表名定义 2025-12-18 14:06:35 +08:00
a977f5b261 优化数据表结构 2025-12-18 12:17:17 +08:00
cfe81760aa feat: 添加项目配置文件,更新忽略文件和迁移状态设置 2025-12-02 21:36:24 +08:00
8b6e18f0e2 feat: 更新数据模型和API路由,优化用户信息获取及设置管理 2025-12-02 21:36:19 +08:00
22c8f7649f 更新清理工具 2025-11-27 22:21:17 +08:00
b02a4638da feat: add database session dependency for FastAPI routes
- Introduced a new dependency in `middleware/dependencies.py` to provide an asynchronous database session using SQLModel.
- This dependency can be utilized in route functions to facilitate database operations.
2025-11-27 22:18:50 +08:00
b364b740ca feat: Enhance models and README with additional features and improvements
- Updated README to include KodBox in project vision.
- Added model descriptions for clarity in Download, File, Folder, Group, Node, Order, Policy, Redeem, Report, Request, Response, Setting, Share, SourceLink, StoragePack, Tag, Task, User, and WebDAV.
- Changed optional fields from Optional[...] to the new union type syntax (e.g., str | None).
- Improved foreign key references in models for consistency.
- Refactored relationships in models to use singular forms where appropriate.
- Updated login service to reflect changes in request model types.
2025-11-27 21:22:40 +08:00
1533d9e89c Refactor code structure for improved readability and maintainability 2025-11-27 20:56:48 +08:00
83276c8b95 优化用户登录逻辑,简化错误处理,更新密码哈希生成方式为Argon2 2025-11-01 19:41:19 +08:00
0d45a07ba7 优化数据库模型与关系 2025-09-27 22:40:10 +08:00
cf5539f3c2 重构模型基类 2025-09-26 06:18:59 +08:00
2a173c0566 添加Github登录,优化数据库模型 2025-09-01 00:21:06 +08:00
f3a5ae9c40 优化部分代码实现 2025-08-28 02:23:26 +08:00
9f93f6040b 完成部分Github登录回调 2025-08-27 13:49:17 +08:00
bf3b0e5f7e 使用 compare_digest 抵御时差攻击 2025-07-18 00:59:05 +08:00
4148e362b9 数据库时间日志迁移至 BaseModel 2025-07-18 00:50:19 +08:00
6f83022a79 新增获取用户信息 /api/user/me 2025-07-17 23:26:36 +08:00
e98c46f44a 用户登录 2025-07-17 19:33:48 +08:00
412565cda2 用户登录完成 2025-07-17 19:33:37 +08:00
33cca4e271 修复数据库迁移问题、新增环境变量读写 2025-07-15 17:32:00 +08:00
dc522a8e93 新增读取用户与其单元测试 2025-07-14 15:43:02 +08:00
557a50f539 单元测试:新建用户与用户组 2025-07-14 15:13:05 +08:00
e011a1ea0e 完善 /api/site/config 路由,修复数据库无法二次启动 2025-07-02 00:42:54 +08:00
e84b3a7dee 完成数据库设置表的增删改查 2025-07-01 23:50:16 +08:00
652a78cb05 数据库优化 2025-07-01 00:16:07 +08:00
f6825b670f 数据库创建 2025-06-22 19:26:23 +08:00
6094d8219e 路由与数据表优化 2025-06-20 22:26:28 +08:00
eb3d2843eb 完成部分API路由以及文档 2025-06-18 02:14:37 +08:00
127fb6972f Initial commit 2025-05-29 00:38:41 +08:00