Files
lgp-admin-plus-api/.cursor/rules/lgp-project-map.mdc
LQ bcf54c2727 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:21:21 +08:00

47 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: LGP 项目群架构、各仓库角色与双品牌对应关系
alwaysApply: true
---
# LGP 项目地图
两个家具品牌共用一套代码,正从老架构迁往新架构。
## 新架构(开发主战场)
- `lgp-admin-plus` — 后台前端vben **5.7.0** monorepo主应用 `apps/web-antd`,上游是自研 `nl-admin-view`
- `lgp-admin-plus-api` — 后端,**Laravel 13**,位于 `sites/lgp-api/index/lgp-admin-plus-api`
## 老架构(迁移期只读,迁完归档)
- `lgp-vben` — 老后台前端vben 2.11.5
- `lgp-api` — 老后台后端Laravel 10
- `lgp-wx-api` — 老小程序后端Laravel 12本期归并进新后端的 `wx` 路由组
- `lgp-vben-new` — **已弃用**,与 `lgp-vben` 同源克隆,不要在里面做任何改动
## 小程序uni-app + Vue3 + uview-plus
- `lgp-wx` — 佛山铂尔曼AppID `wx679d36842570cea7`API `brm.wx.api.borman.top`
- `lgp-wx-new` — 维伦家具AppID `wx57b54060a579c31a`API `wx.api.borman.top`
两者页面与业务代码基本一致,差异只有 AppID、`baseURL` 与首页视觉。改一边通常要同步另一边。
## 双品牌
同一套后台代码部署两份,靠构建模式区分:`build:brm`(佛山铂尔曼)/ `build:wl`(维伦家具)。
两个品牌共用一套代码与数据库,任何业务改动会同时影响两家客户,上线前按品牌分别回归。
## 数据库
同一个库、两个连接(`config/database.php`
- `mysql`,前缀 `nl_` — 脚手架系统表admin / role / menu / oss_config / file / api_endpoint 等)
- `business`,前缀 `cc_` — 业务表catalogue / category / image / price_sheet / list / wx_user / enterprise 等)
业务数据零迁移,只迁账号与角色。业务 Model 必须覆盖 `protected $connection = 'business'`。
## 迁移范围
老后端注册 171 条路由但前端只调用 **79** 条;老小程序后端注册 35 条但小程序只调用 **14** 条。
迁移目标是这 93 条,其余是反射自动注册出来的死路由,不要跟着迁。