Files
one-pipe-system/src/config/constants/pollingScheduler.ts
luo 06684e1fc0
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 55s
fix: 轮询按运营商账户限流
2026-10-26 14:31:15 +08:00

54 lines
1.8 KiB
TypeScript

export const SCHEDULER_PERMISSIONS = {
params: {
page: 'polling_carrier_params:page',
detailPage: 'polling_carrier_params:detail_page',
detail: 'polling_carrier_params:detail'
},
scenes: { page: 'polling_check_scene:page' },
alerts: {
page: 'polling_failure_alert:page',
detailPage: 'polling_failure_alert:detail_page',
detail: 'polling_failure_alert:detail',
summary: 'polling_failure_alert:summary',
handle: 'polling_failure_alert:handle',
close: 'polling_failure_alert:close_polling',
export: 'polling_failure_alert:export'
},
queues: { page: 'polling_carrier_queue:page' },
dryRun: { page: 'stop_resume_dry_run:page', export: 'stop_resume_dry_run:export' },
pauses: {
page: 'polling_pause:page',
restore: 'polling_pause:restore',
export: 'polling_pause:export'
},
imports: {
page: 'polling_status_import:page',
create: 'polling_status_import:create',
detailPage: 'polling_status_import:detail_page',
detail: 'polling_status_import:detail'
},
cardState: 'iot_info:polling_state',
deviceCardState: 'device_info:polling_state',
cardBatch: 'iot_card:batch_polling',
deviceBatch: 'device:batch_polling'
} as const
export const POLLING_CLOSE_SOURCES = [
['single', '单资产接口'],
['batch', '勾选批量'],
['import', '文件导入'],
['risk_auto', '风险停机或已销户自动关闭'],
['cascade', '设备级联'],
['order', '支付或下单生效'],
['expiry_change', '修改有效期'],
['alert', '停机被拒告警处理'],
['history', '历史数据']
].map(([value, label]) => ({ value, label }))
export const POLLING_CHECK_TYPES = [
['card_status', '卡状态'],
['carddata', '流量'],
['realname', '实名'],
['package', '套餐'],
['stop_resume', '停复机'],
['all', '账户级']
].map(([value, label]) => ({ value, label }))