-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
new changes #1486
Closed
Closed
new changes #1486
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 更新环境变量配置,替换postgres相关参数为mysql配置 - 修改数据库连接uri生成逻辑,使用mysql+pymysql驱动 - 调整密码验证逻辑以适配新的mysql密码字段 🔧 chore(dependencies): 规范化依赖版本声明格式 - 统一sentry-sdk版本号声明顺序以保持格式一致性
- 将 PostgreSQL 驱动 psycopg 替换为 MySQL 驱动 pymysql - 同步更新 uv.lock 文件中的依赖关系 🐛 fix(build): 修复依赖平台标记 - 修正 click 依赖中 colorama 的平台标记条件判断 - 从 platform_system 改为 sys_platform 以符合 PEP 508 规范
- 删除四个已过期的alembic迁移脚本文件 - 移除与UUID主键转换相关的历史迁移记录 ♻️ refactor(database): 重构模型主键类型及关联关系 - 将user和item表的id字段类型从integer改为UUID字符串 - 调整外键关联字段owner_id为UUID类型 - 更新数据库索引命名规范(idx_user_email) 🐛 fix(authentication): 修复用户认证时的UUID解析问题 - 在deps.py中增加uuid模块导入 - 使用uuid.UUID转换token中的用户ID字段
- 将FIRST_SUPERUSER改为符合标准的邮箱格式admin@example.com ♻️ refactor(models): 重构数据模型结构 - 将用户和条目模型拆分到独立model子目录 - 更新所有相关模块的模型导入路径 - 清理原models.py文件冗余代码 📦 build(migrations): 添加数据库迁移脚本 - 新增user和item表的初始化alembic迁移文件 - 包含升级和回滚操作的完整迁移逻辑
- 添加UserService类实现用户创建、更新及认证功能 - 添加ItemService类实现物品创建逻辑 - 引入服务层隔离业务逻辑与数据库操作 ♻️ refactor(test): 重构测试用例结构 - 删除旧版CRUD测试文件test_user.py - 更新测试工具模块导入路径 - 调整模型引用路径至新的model目录结构
- 将用户相关数据库操作迁移至UserService类 - 在路由层使用服务类方法替代直接CRUD操作 - 添加用户密码更新、删除等业务逻辑的集中处理 - 统一异常处理流程使用try/catch块 ♻️ refactor(items): 重构项目模块模型方法 - 在Item模型添加CRUD类方法 - 实现项目查询的分页和权限检查逻辑 - 分离数据库操作到模型层方法 ✨ feat(service): 添加用户和项目服务层 - 创建UserService处理用户相关业务逻辑 - 创建ItemService处理项目CRUD操作 - 实现完整的权限验证流程 - 添加服务层的单元测试支持 ♻️ refactor(models): 调整模型文件结构 - 拆分原models模块为独立model包 - 将User和Item模型移至对应子模块 - 更新所有相关模块的导入路径 - 添加模型间的关联关系定义 ♻️ refactor(tests): 更新测试用例依赖 - 调整测试用例使用新的模型导入路径 - 重构测试工具函数使用服务层 - 保持测试覆盖率不变的情况下优化测试结构
- 新增ItemService处理所有物品相关业务逻辑 - 重构路由函数调用服务层方法 - 移除直接数据库操作实现关注点分离 🗑️ chore(crud): 删除遗留的CRUD模块 - 迁移所有CRUD功能至对应的服务类 - 清理不再使用的遗留代码 💄 style(code): 调整代码格式和导入顺序 - 统一模型文件的导入顺序 - 格式化长参数列表为更易读的多行格式 - 移除未使用的导入依赖
- 将用户模型和CRUD操作迁移到service层,实现逻辑分离 - 统一使用UserService处理用户认证、密码管理等业务逻辑 - 优化模块导入顺序并清理多余的空格,保持代码风格统一 - 调整模型类文件结构,分离公共模型定义与数据库模型
- 将用户和条目模型文件重命名为user_model.py与items_model.py - 更新所有相关模块的模型引用路径以匹配新文件结构 - 移除旧的users.py和items.py模型文件 - 在服务层和测试用例中同步更新模型类导入路径
- 修改代码中不一致的模块导入路径,使用统一的 app.models 路径 - 删除冗余和重复的导入语句 - 添加新的 item_model.py 模块并移动相关功能【模块重构】 ♻️ refactor(test): 更新测试模块的导入路径 - 将测试模块中的导入路径与业务模块保持一致【模块重构】
- 移除ItemModel中的密码哈希相关代码,并更名ItemModel为Item - 添加Item的类方法以支持CRUD操作 - 在UserService中添加密码哈希功能,并更名为UserModel - 优化用户密码更新逻辑 - 优化查询逻辑,支持超级用户和非超级用户的权限区分【model】 ♻️ refactor(service): 优化UserService服务 - 将UserService中的用户验证、密码更新等操作下放到UserModel中 - 优化用户密码更新逻辑,确保密码更新的安全性【service】
- 添加项目基础配置文件,包括 .editorconfig, .env, .eslintrc 等 - 集成 TDesign Vue Next 组件库和相关依赖 - 配置路由、状态管理、国际化等基础功能 - 添加常用页面模板,如登录、仪表盘、列表、详情等 - 引入通用组件和工具函数 - 配置开发环境和生产构建脚本
This was marked as invalid and will be closed now. If this is an error, please provide additional details. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.