feat: chat integration, tenant admin spec, backend chat service, miniprogram updates, DEMO moved to tmp, XCX-TEST removed, migrations & docs

This commit is contained in:
Neo
2026-03-20 09:02:10 +08:00
parent 3d2e5f8165
commit beb88d5bea
388 changed files with 6436 additions and 25458 deletions

View File

@@ -0,0 +1,58 @@
/**
* 任务类型配置
*/
export const TASK_TYPE_CONFIG = {
high_priority: {
label: '高优先召回',
color: 'red',
bgColor: '#fee2e2',
borderColor: '#fca5a5',
textColor: '#b91c1c',
bannerBg: '/assets/images/banner-bg-red-aurora.svg',
},
priority_recall: {
label: '优先召回',
color: 'orange',
bgColor: '#fed7aa',
borderColor: '#fdba74',
textColor: '#b45309',
bannerBg: '/assets/images/banner-bg-orange-aurora.svg',
},
relationship: {
label: '关系构建',
color: 'pink',
bgColor: '#fce7f3',
borderColor: '#f9a8d4',
textColor: '#be185d',
bannerBg: '/assets/images/banner-bg-pink-aurora.svg',
},
callback: {
label: '客户回访',
color: 'teal',
bgColor: '#ccfbf1',
borderColor: '#99f6e4',
textColor: '#0d9488',
bannerBg: '/assets/images/banner-bg-teal-aurora.svg',
},
} as const
/**
* 任务状态配置
*/
export const TASK_STATUS_CONFIG = {
normal: {
label: '进行中',
icon: '📋',
},
pinned: {
label: '已置顶',
icon: '📌',
},
abandoned: {
label: '已放弃',
icon: '❌',
},
} as const
export type TaskType = keyof typeof TASK_TYPE_CONFIG
export type TaskStatus = keyof typeof TASK_STATUS_CONFIG