Initial CMPP frontend prototype

This commit is contained in:
hectorzhao
2026-06-30 16:09:46 +08:00
commit 2f3c274a30
98 changed files with 25255 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
import type { AdminOverview, AuditItem, Channel, Customer } from '@/mock/types';
export const adminOverview: AdminOverview = {
todaySubmissions: 128,
pendingAudits: 36,
averageWaitMinutes: 12,
channelHealth: 99.2,
};
export const auditItems: AuditItem[] = [
{
id: 'AUD-2401',
customer: '上海云舟科技',
type: '模板',
content: '验证码 ${code}5 分钟内有效。',
risk: 'low',
status: 'pending',
submittedAt: '2026-06-16 09:12',
},
{
id: 'AUD-2402',
customer: '杭州星澜商贸',
type: '签名',
content: '星澜会员中心',
risk: 'medium',
status: 'pending',
submittedAt: '2026-06-16 09:04',
},
{
id: 'AUD-2403',
customer: '深圳北辰出行',
type: '模板',
content: '您的优惠券已到账,点击链接查看。',
risk: 'high',
status: 'pending',
submittedAt: '2026-06-16 08:46',
},
];
export const customers: Customer[] = [
{ id: 'CUS-1001', name: '上海云舟科技', contact: '赵先生', balance: 286420, status: 'active' },
{ id: 'CUS-1002', name: '杭州星澜商贸', contact: '王女士', balance: 94220, status: 'active' },
{ id: 'CUS-1003', name: '深圳北辰出行', contact: '陈先生', balance: 0, status: 'suspended' },
];
export const channels: Channel[] = [
{ id: 'CH-01', name: '华东主通道', region: '华东', successRate: 99.1, latencyMs: 128, enabled: true },
{ id: 'CH-02', name: '华南通道', region: '华南', successRate: 98.6, latencyMs: 164, enabled: true },
{ id: 'CH-03', name: '备用通道', region: '全国', successRate: 97.8, latencyMs: 210, enabled: true },
];