refactor: 清理废弃模块并重构管理端与全端代码
- 移除所有废弃的旧首页配置模块,包括destinationHero、demand相关、HomeExperience、vehicleService等表结构与代码,新增数据库迁移删除遗留表 - 重构管理端后台布局为标准RuoYi风格,新增Sidebar、Navbar、SettingsDrawer等组件,替换旧的过渡菜单实现 - 调整移动端响应断点为768px,更新布局相关测试用例,新增布局组件测试 - 删除OperationsTools发布/重置页面,移除/tools菜单入口,清理对应的API调用与测试代码 - 重构玩法模块编辑器:替换旧的图片手动输入框为图片上传组件,移除冗余的取消按钮 - 新增线索查询offset参数支持,完善查询参数处理逻辑 - 优化rbac菜单构建逻辑,新增可见性控制参数 - 修正管家编辑器提示文案,优化系统资源编辑器表单初始化逻辑 - 清理小程序端废弃的体验推荐组件与相关测试代码 - 更新文档与种子脚本,匹配新的API契约与使用说明
This commit is contained in:
@@ -35,27 +35,11 @@
|
||||
```ts
|
||||
type SiteConfig = {
|
||||
heroSlides: HeroSlide[];
|
||||
destinationHero: DestinationHero[];
|
||||
vehicleOptions: VehicleOption[];
|
||||
demandHero: DemandHero[];
|
||||
demandFeatureCards: DemandFeatureCard[];
|
||||
demandForm: DemandForm[];
|
||||
vehicleService: VehicleService | null;
|
||||
};
|
||||
|
||||
type VehicleService = {
|
||||
id: string;
|
||||
introTitle: string;
|
||||
intro: string;
|
||||
serviceSections: Array<{ title: string; description: string }>;
|
||||
advantages: string[];
|
||||
processSteps: Array<{ title: string; description: string }>;
|
||||
};
|
||||
```
|
||||
|
||||
Public 响应只返回启用内容,其余模块按 `isActive` 过滤。
|
||||
|
||||
`vehicleService` 是用车需求页的启用单例配置;未配置或停用时返回 `null`,MiniAPP 使用本地安全文案兜底,不代表实时库存、价格或订单承诺。
|
||||
Public 响应只返回 `heroSlides` 和 `vehicleOptions` 的启用内容,其余旧首页配置模块不再返回。首页玩法推荐、团队共创和极境视界由 `/api/public/home` 及其详情接口提供;用车需求说明使用 MiniAPP 本地文案,实际提交走 `/api/public/leads`,不再依赖旧的 `vehicleService` 配置。
|
||||
|
||||
### 用车需求提交
|
||||
|
||||
@@ -254,40 +238,7 @@ type HomeWildArchive = {
|
||||
|
||||
站点模块通常包含 `id`、`createdAt`、`updatedAt`、`isActive` 和 `sortOrder`。客户端按 `sortOrder` 消费排序模块,不依赖固定 ID。
|
||||
|
||||
### 需求配置
|
||||
|
||||
```ts
|
||||
type DemandHero = {
|
||||
id: string;
|
||||
title: string;
|
||||
kicker: string | null;
|
||||
description: string | null;
|
||||
steps: string[];
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
};
|
||||
|
||||
type DemandFeatureCard = {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string | null;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
};
|
||||
|
||||
type DemandForm = {
|
||||
id: string;
|
||||
destinationLabel: string;
|
||||
destinationPlaceholder: string | null;
|
||||
phoneLabel: string;
|
||||
phonePlaceholder: string | null;
|
||||
noteLabel: string;
|
||||
notePlaceholder: string | null;
|
||||
submitLabel: string;
|
||||
chips: string[];
|
||||
isActive: boolean;
|
||||
};
|
||||
```
|
||||
旧需求页主视觉、特色卡片和需求表单已移除;需求页面只通过 `POST /api/public/leads` 提交实时线索,不再读取已删除的站点配置表。
|
||||
|
||||
## 登录接口
|
||||
|
||||
|
||||
Reference in New Issue
Block a user