eb9e069f76
优化价格更新逻辑,增加模型处理的唯一性检查
...
- 在 UpdateOtherPrices 函数中新增已处理模型的跟踪机制,避免重复处理同一模型
- 增强模型数据处理逻辑,确保在创建新价格记录前检查待审核记录
- 更新 main.go,添加初始化任务的调用,提升系统启动时的功能完整性
2025-03-18 03:01:10 +08:00
37ded8ffae
调整数据库日志级别,减少不必要的日志输出
...
- 将 GORM 日志级别从 Info 降低到 Error
- 减少数据库操作过程中的详细日志记录
- 提高日志可读性和系统性能
2025-03-07 00:34:10 +08:00
9f51ac602e
实现内存缓存机制,优化数据库查询性能
...
- 新增内存缓存接口和实现,支持设置过期时间
- 在数据库初始化时创建全局缓存实例
- 为模型类型、提供商和价格查询添加缓存层
- 实现定期缓存常用数据的后台任务
- 优化数据库查询,减少重复查询和不必要的数据库访问
- 为价格查询添加索引,提高查询效率
2025-03-07 00:28:36 +08:00
aeb05f790a
重构数据库层并迁移到 GORM
...
- 将数据库操作从原生 SQL 迁移到 GORM ORM
- 更新模型定义,添加 GORM 标签和关系
- 移除手动创建表的 SQL 方法,改用 AutoMigrate
- 更新所有数据库相关处理逻辑以适配 GORM
- 升级 Go 版本和依赖库
- 移除数据库和路由中间件,简化项目结构
2025-03-06 23:32:18 +08:00
b0d0bee061
test
2025-02-23 04:23:57 +08:00
315933d57a
Refactor model type handling and add SQLite support
...
- Update config to include SQLite path for database migration
- Modify model type handlers to use new database schema
- Update frontend to handle new model type key and label fields
- Add database migration script to start process
- Import SQLite driver for potential database usage
2025-02-23 04:23:42 +08:00
330963418e
Remove SQLite migration and related code
2025-02-23 04:03:20 +08:00
a2932ecf6b
Migrate from SQLite to MySQL: Update database configuration and schema
2025-02-23 03:37:10 +08:00
1d16333e11
Replace "supplier" terminology with "model vendor" across frontend and backend
2025-02-08 21:03:01 +08:00
7487aaadda
Remove Deno-specific configuration files and migrate to Cloudflare Workers environment
2025-02-08 17:32:58 +08:00