feat: 支持动态增加 site 配置 #30

Merged
longbot merged 7 commits from dev_szk into main 2025-11-25 08:00:17 +00:00
Collaborator
No description provided.
zksu added 6 commits 2025-11-24 01:57:30 +00:00
c75d620516 feat(站点): 实现站点管理功能
添加站点实体、服务层和控制器,支持站点的CRUD操作
同步配置中的站点信息到数据库
提供站点禁用/启用功能
c7480ccc8a refactor(站点管理): 移除配置中的站点数组,统一通过数据库获取站点信息
重构多个控制器和服务,将硬编码的站点配置替换为通过 SiteService 从数据库获取
使用批量查询优化站点名称映射,避免 N+1 查询问题
兼容新旧站点数据结构,确保平滑过渡
a64e611294 refactor(service): 统一使用site.apiUrl并优化产品同步逻辑
移除对wpApiUrl的兼容处理,统一使用apiUrl
修复产品同步查询的分页问题,使用Infinity获取全部数据
优化代码格式和缩进
a59d5a7b75 fix: 修复站点相关接口的类型转换和字段处理
修复 order.service 中 email 字段返回空字符串以保持兼容
统一 webhook.controller 和 wp_product.service 中的 site.id 类型为字符串
在 wp.service 中添加接口返回内容类型检查并返回 total 字段
优化 site.service 的代码注释和字段处理逻辑
zksu changed title from feat: to feat: 支持动态增加 site 配置 2025-11-24 01:57:54 +00:00
zksu added 1 commit 2025-11-24 02:32:40 +00:00
longbot approved these changes 2025-11-25 08:00:05 +00:00
longbot left a comment
Collaborator

pass

pass
longbot merged commit 927857a795 into main 2025-11-25 08:00:17 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: yoone/API#30
No description provided.