feat: 累积功能变更 — 聊天集成、租户管理、小程序更新、ETL 增强、迁移脚本
包含多个会话的累积代码变更: - backend: AI 聊天服务、触发器调度、认证增强、WebSocket、调度器最小间隔 - admin-web: ETL 状态页、任务管理、调度配置、登录优化 - miniprogram: 看板页面、聊天集成、UI 组件、导航更新 - etl: DWS 新任务(finance_area_daily/board_cache)、连接器增强 - tenant-admin: 项目初始化 - db: 19 个迁移脚本(etl_feiqiu 11 + zqyy_app 8) - packages/shared: 枚举和工具函数更新 - tools: 数据库工具、报表生成、健康检查 - docs: PRD/架构/部署/合约文档更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
16
apps/miniprogram/typings/api.d.ts
vendored
16
apps/miniprogram/typings/api.d.ts
vendored
@@ -33,10 +33,10 @@ interface ApiUserInfo {
|
||||
user_id: number
|
||||
status: 'new' | 'pending' | 'approved' | 'rejected' | 'disabled'
|
||||
nickname: string
|
||||
avatar_url?: string
|
||||
role?: string
|
||||
store_name?: string
|
||||
coach_level?: string
|
||||
avatar?: string
|
||||
}
|
||||
|
||||
/** AUTH-4: 刷新 token 响应 */
|
||||
@@ -54,7 +54,7 @@ interface ApiTaskItem {
|
||||
id: string
|
||||
customer_name: string
|
||||
customer_avatar: string
|
||||
task_type: 'callback' | 'priority_recall' | 'relationship' | 'high_priority'
|
||||
task_type: 'high_priority_recall' | 'priority_recall' | 'follow_up_visit' | 'relationship_building'
|
||||
task_type_label: string
|
||||
deadline: string
|
||||
heart_score: number
|
||||
@@ -115,6 +115,14 @@ interface ApiTaskDetail extends ApiTaskItem {
|
||||
service_records: ApiServiceRecord[]
|
||||
ai_analysis: { summary: string; suggestions: string[] }
|
||||
notes: ApiNoteItem[]
|
||||
/** P13: 客户手机号 */
|
||||
customer_phone?: string
|
||||
/** P13: 放弃原因 */
|
||||
abandon_reason?: string
|
||||
/** P13: AI 行动建议列表 */
|
||||
action_suggestions?: string[]
|
||||
/** P13: 客户储值余额(用于前端计算储值等级) */
|
||||
balance?: number
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -199,6 +207,8 @@ interface ApiCustomerDetail {
|
||||
relation_index: string
|
||||
tags: string[]
|
||||
retention_clues: ApiRetentionClue[]
|
||||
/** P13: 累计服务次数 */
|
||||
total_service_count?: number
|
||||
consumption_records: Array<{
|
||||
id: string
|
||||
date: string
|
||||
@@ -236,6 +246,8 @@ interface ApiBoardCoachItem {
|
||||
total_income: number
|
||||
customer_count: number
|
||||
satisfaction: number
|
||||
/** P13: 任务执行统计 */
|
||||
task_stats?: { recall: number; callback: number }
|
||||
}
|
||||
|
||||
/** BOARD-2: 客户看板项 */
|
||||
|
||||
Reference in New Issue
Block a user