26 Commits

Author SHA1 Message Date
2b2cc35a1c 添加价格列表搜索功能
- 后端 prices.go 新增搜索查询参数,支持按模型名称模糊搜索
- 更新缓存键和总数缓存键,包含搜索查询参数
- 前端 Prices.vue 添加搜索输入框和搜索处理逻辑
- 实现搜索防抖,优化用户交互体验
- 重置搜索时自动返回第一页
2025-03-12 16:46:59 +08:00
e037eaafef 修复价格管理中的 channel_type 类型转换问题
- 在提交价格表单时,将 channel_type 显式转换为数字类型
- 确保批量添加价格和单个价格提交时 channel_type 正确处理
- 修复可能由于类型不匹配导致的数据提交错误
2025-03-12 15:50:00 +08:00
9f51ac602e 实现内存缓存机制,优化数据库查询性能
- 新增内存缓存接口和实现,支持设置过期时间
- 在数据库初始化时创建全局缓存实例
- 为模型类型、提供商和价格查询添加缓存层
- 实现定期缓存常用数据的后台任务
- 优化数据库查询,减少重复查询和不必要的数据库访问
- 为价格查询添加索引,提高查询效率
2025-03-07 00:28:36 +08:00
0bdadcfef7 新增模型类型管理功能
- 后端添加模型类型的增删改查接口,并增加管理员权限控制
- 扩展模型类型模型,新增排序字段
- 前端新增模型类型管理页面入口和路由
- 优化模型类型查询,支持按排序字段排序
- 在创建和更新价格时增加模型重复性检查
2025-03-06 23:16:18 +08:00
da79bf3d6d 新增批量审核价格功能并优化前端交互
- 后端新增 `/prices/approve-all` 接口,支持管理员一键通过所有待审核价格
- 前端价格管理页面添加"全部通过"按钮,仅对管理员可见
- 优化批量添加价格页面交互,增加行复制和删除按钮
- 调整价格输入为可为空,移除默认值为0的限制
2025-03-06 22:43:30 +08:00
cc55be5ac8 Enhance Prices view with robust NULL value handling and minor onMounted optimization
- Add NULL check for temporary fields to prevent unnecessary tag rendering
- Update model type loading to use correct key and label fields
- Simplify onMounted method to remove unnecessary async/await
2025-02-23 04:54:43 +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
09edd1f271 修复: 提交模型表单类型 2025-02-22 02:10:04 +08:00
7d036959e2 修复: 前端提交模型厂商ID信息, 改为数字类型, 与后端匹配 2025-02-22 01:47:17 +08:00
67639f94ed Refactor Prices view action buttons with improved UX and icon-based interactions 2025-02-21 12:29:11 +08:00
2efb33fc2f Enhance provider management and price filtering with model type and ID handling 2025-02-21 12:07:56 +08:00
15a7c75145 Add getModelType function to support model type display in Prices view 2025-02-21 11:58:04 +08:00
6fa37f6d6a Add model type support for pricing management 2025-02-21 11:51:53 +08:00
d4aebb8148 更新 OAuth 相关 URL 以使用新域名,并修改前端链接 2025-02-14 23:59:28 +08:00
40feab37f6 Improve Prices view dialog layout and responsiveness 2025-02-09 19:34:53 +08:00
50d63f47c7 Add channel type filtering to Prices view and backend API 2025-02-09 19:24:10 +08:00
e852b885c0 Implement pagination and loading states for Prices and Providers views 2025-02-09 18:56:56 +08:00
b5faf07c6c Adjust Prices view table column width 2025-02-08 21:51:35 +08:00
c1e63cea5b Refactor Prices view import and table display logic 2025-02-08 21:43:59 +08:00
6d114d57a6 Update footer and home page with Q58 community link 2025-02-08 21:36:17 +08:00
e31e35c0b5 Update Vite proxy to use local development server 2025-02-08 21:30:48 +08:00
7b884cd3ee Enhance Prices view with admin batch actions and UI improvements 2025-02-08 21:30:28 +08:00
1d16333e11 Replace "supplier" terminology with "model vendor" across frontend and backend 2025-02-08 21:03:01 +08:00
7873fab16f Add batch price submission and improve UI for price list view 2025-02-08 20:54:51 +08:00
e7967dfeff Modify login flow to support dynamic OAuth 2.0 authorization URL 2025-02-08 20:21:39 +08:00
7487aaadda Remove Deno-specific configuration files and migrate to Cloudflare Workers environment 2025-02-08 17:32:58 +08:00