feat: 套餐折叠、小程序 staging API、首页去筛选、企微日志权限

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 20:17:52 +08:00
parent ac2f9f4793
commit ffa753707b
9 changed files with 558 additions and 261 deletions
+5 -1
View File
@@ -6,6 +6,8 @@ export const WECOM_BOT_PERMISSIONS = [
'support_ticket.create',
'support_ticket.progress',
'handbook.query',
'server_log.view',
'api.query',
] as const;
export type WecomBotPermission = (typeof WECOM_BOT_PERMISSIONS)[number];
@@ -17,6 +19,8 @@ export const WECOM_BOT_PERMISSION_LABELS: Record<WecomBotPermission, string> = {
'support_ticket.create': '创建技术支持工单',
'support_ticket.progress': '查看开发进度',
'handbook.query': '查询使用手册',
'server_log.view': '查看服务器日志',
'api.query': '查询业务 API(只读)',
};
/** 预置机器人角色(创建时可选;权限可按角色带出默认值后自定义) */
@@ -38,7 +42,7 @@ export const WECOM_BOT_ROLE_LABELS: Record<WecomBotRole, string> = {
export const WECOM_BOT_ROLE_DEFAULT_PERMISSIONS: Record<WecomBotRole, WecomBotPermission[]> = {
CUSTOMER_SERVICE: ['ticket.create', 'user.view_sms', 'delivery.view'],
TECH_SUPPORT: ['support_ticket.create', 'support_ticket.progress'],
TECH_SUPPORT: ['support_ticket.create', 'support_ticket.progress', 'server_log.view', 'api.query'],
TEAM_ASSISTANT: ['handbook.query'],
CUSTOM: [],
};