feat: add number library routing and cdr location support

This commit is contained in:
hectorzhao
2026-06-24 11:39:32 +08:00
parent 5fa1bd35e9
commit 7057fd3c42
63 changed files with 6361 additions and 566 deletions
+12 -1
View File
@@ -4,6 +4,8 @@ const prisma = new PrismaClient();
const permissions = [
['dashboard.view', 'dashboard', 'view', '查看 Dashboard 指标'],
['active_calls.view', 'active_calls', 'view', '查看当前通话'],
['active_calls.manage', 'active_calls', 'manage', '强制挂断当前通话'],
['customers.view', 'customers', 'view', '查看客户'],
['customers.manage', 'customers', 'manage', '管理客户'],
['customer_gateways.view', 'customer_gateways', 'view', '查看客户网关'],
@@ -14,6 +16,8 @@ const permissions = [
['vendor_gateways.manage', 'vendor_gateways', 'manage', '管理落地网关'],
['line_groups.view', 'line_groups', 'view', '查看落地线路组'],
['line_groups.manage', 'line_groups', 'manage', '管理落地线路组'],
['number_library.view', 'number_library', 'view', '查看号码库'],
['number_library.manage', 'number_library', 'manage', '管理号码库'],
['recharges.view', 'recharges', 'view', '查看充值流水'],
['recharges.manage', 'recharges', 'manage', '执行客户或供应商充值'],
['cdr.view', 'cdr', 'view', '查看话单'],
@@ -40,6 +44,7 @@ const roles = [
description: '客户、网关、线路和话单运营',
permissionIds: [
'dashboard.view',
'active_calls.view',
'customers.view',
'customers.manage',
'customer_gateways.view',
@@ -48,6 +53,8 @@ const roles = [
'vendor_gateways.view',
'line_groups.view',
'line_groups.manage',
'number_library.view',
'number_library.manage',
'cdr.view',
'recordings.play'
]
@@ -75,9 +82,13 @@ const roles = [
'vendor_gateways.view',
'vendor_gateways.manage',
'line_groups.view',
'number_library.view',
'number_library.manage',
'cdr.view',
'recordings.play',
'audit.view'
'audit.view',
'active_calls.view',
'active_calls.manage'
]
}
];