refactor(app): appId wxapp-escort-admin 更名为 wxapp_companion
与陪诊师小程序工程名对齐;同步注册表、配置白名单、脚本示例与测试。数据库 user_app / user_identity / user.app 旧字段已同步迁移。
This commit is contained in:
@@ -18,7 +18,7 @@ export const APP_CONFIG_SCHEMAS = {
|
||||
}),
|
||||
}),
|
||||
|
||||
"wxapp-escort-admin": Joi.object({
|
||||
"wxapp_companion": Joi.object({
|
||||
pageSize: Joi.number().integer().min(10).max(200),
|
||||
defaultFilter: Joi.string().valid("all", "pending", "done"),
|
||||
soundAlert: Joi.boolean(),
|
||||
@@ -40,7 +40,7 @@ export const APP_CONFIG_DEFAULTS = {
|
||||
language: "zh-CN",
|
||||
notifications: { orderStatus: true, marketing: false },
|
||||
},
|
||||
"wxapp-escort-admin": {
|
||||
"wxapp_companion": {
|
||||
pageSize: 100,
|
||||
defaultFilter: "all",
|
||||
soundAlert: true,
|
||||
|
||||
@@ -11,14 +11,14 @@ import config from "../conf.json" with { type: "json" };
|
||||
*/
|
||||
export const APP_REGISTRY = {
|
||||
"wxapp-escort": { platform: "weixin", provider: "weixin-mini" },
|
||||
"wxapp-escort-admin": { platform: "weixin", provider: "weixin-mini" },
|
||||
"wxapp_companion": { platform: "weixin", provider: "weixin-mini" },
|
||||
"ttapp-escort": { platform: "douyin", provider: "douyin-mini" },
|
||||
"web-escort-admin": { platform: "weixin", provider: "weixin-web" },
|
||||
tcm: { platform: "web", provider: "password" },
|
||||
};
|
||||
|
||||
// 管理端应用:任一应用内的 admin 都视为管理端管理员
|
||||
export const ADMIN_APP_IDS = ["wxapp-escort-admin", "web-escort-admin"];
|
||||
export const ADMIN_APP_IDS = ["wxapp_companion", "web-escort-admin"];
|
||||
|
||||
// 本阶段只做固定角色白名单,不引入自定义 RBAC
|
||||
export const GRANTABLE_ROLES = ["user", "admin"];
|
||||
|
||||
Reference in New Issue
Block a user