refactor(mobile-app): 移动端应用管理菜单迁移至支付管理(后端)

This commit is contained in:
daxpay
2026-07-29 18:21:02 +08:00
parent eca7cd3bef
commit 2e3685d83c
3 changed files with 31 additions and 7 deletions

View File

@@ -3,3 +3,27 @@
-- 入口已由 WxAppHub(id=40106, menu.payment.wx.app)统一接管
DELETE FROM "public"."iam_perm_menu" WHERE "id" IN (4040113, 4040119, 40503);
-- 「移动端应用管理」菜单归属迁移: 系统管理>系统配置 → 支付管理(顶级)
-- 40504=MobileAppConfig(移动端应用管理)、40505=MobileAppDetail(移动端应用详情)
-- 原因: 该配置的 cashier(收银台小程序)凭证被支付核心 CashierAuthService 直接依赖, 属支付链路前置配置;
-- 表 pay_platform_mobile_app 前缀亦属支付域。pid 由 304(系统配置) 改为 4(支付管理)。
-- 注: 405(支付配置 catalog) 在运营端已软删(deleted=t), 故直接挂顶级 4 下, 与"支付产品配置(40105)"平级。
-- 40504 主菜单: pid 304→4, menu_code/i18n_key/component/path 支付域化, sort_no 调整到支付产品配置之后
UPDATE "public"."iam_perm_menu" SET
"pid" = 4,
"menu_code" = 'payment:config:mobile-app',
"i18n_key" = 'menu.payment.config.mobileApp',
"component" = '/payment/config/mobile-app/MobileAppConfig',
"path" = '/payment/config/mobile-app',
"sort_no" = 2.7
WHERE "id" = 40504;
-- 40505 详情子页: menu_code/i18n_key/component/path 支付域化 (pid 仍挂 40504)
UPDATE "public"."iam_perm_menu" SET
"menu_code" = 'payment:config:mobile-app-detail',
"i18n_key" = 'menu.payment.config.mobileAppDetail',
"component" = '/payment/config/mobile-app/detail/MobileAppDetail',
"path" = '/payment/config/mobile-app/detail/:appType'
WHERE "id" = 40505;

View File

@@ -201,6 +201,12 @@ public interface PermCodes {
/// 菜单编码
String MENU = "payment:config:wx-verify";
}
/// 移动端应用管理 menuCode=payment:config:mobile-app
interface MobileApp {
/// 菜单编码
String MENU = "payment:config:mobile-app";
}
}
/// 微信开放应用主数据 menuCode=payment:wx:*
@@ -392,12 +398,6 @@ public interface PermCodes {
String MENU = "system:protocol";
}
/// 移动端应用管理 menuCode=system:config:mobile-app
interface MobileApp {
/// 菜单编码
String MENU = "system:config:mobile-app";
}
/// 敏感词词库 menuCode=system:sensitive-word
interface SensitiveWord {
/// 菜单编码

View File

@@ -21,7 +21,7 @@ import java.util.List;
///
/// 平台级移动端应用(商户端/管理端/收银台小程序)的密钥、通知、用户绑定配置管理。
/// 按端类型(appType)+移动平台(platform)维度, 每组合一条配置记录。
@PermCode(menuCode = PermCodes.System.MobileApp.MENU)
@PermCode(menuCode = PermCodes.Payment.Config.MobileApp.MENU)
@Validated
@Tag(name = "移动端应用配置管理")
@RestController