feat(admin): 菜单快照对齐迁移,存量库自动补齐运行管理与XHProf菜单

对齐迁移是菜单快照进入数据库的唯一途径(新装与存量库同路径);缺失行按显式 id 补插,框架结构行仅对齐 pid+sort,软删/用户分组跳过;新增规则文件与索引;清理 status 模块孤儿占位文件。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
augushong
2026-09-09 14:37:56 +00:00
parent 95c9126410
commit e54c772868
7 changed files with 274 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace app\admin\service;
use base\admin\service\MenuAlignServiceBase;
/**
* 菜单快照对齐服务(app 层入口).
*
* 存量库菜单补齐与结构对齐:由数据型 migration 调用,把
* extend/base/admin/service/adminInitData/SystemMenu.php 快照对齐到当前库。
* 需要定制对齐行为时覆盖父类方法,保持方法签名一致。
*/
class MenuAlignService extends MenuAlignServiceBase
{
}