feat(customers): 微信客户页脚改云客口径(Σ员工好友数声明值8590,用户选B方案)
- GET /api/customers/declared-total: Σ wechat_account.contacts_num - 页脚优先显示云客口径(回退真实total);列表内容保持去重真实行 - 云客列表声明值含其ES索引重复doc(连行id都相同无法物理区分),仅对齐计数 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,10 @@ export interface CustomerQuery {
|
||||
last_chat_since?: number
|
||||
}
|
||||
|
||||
export function getCustomerDeclaredTotal(): Promise<{ declared_total: number; account_count: number }> {
|
||||
return getJson<{ declared_total: number; account_count: number }>('/customers/declared-total')
|
||||
}
|
||||
|
||||
export function getCustomers(query: CustomerQuery = {}): Promise<Page<Customer>> {
|
||||
return getJson<Page<Customer>>(
|
||||
'/customers',
|
||||
|
||||
Reference in New Issue
Block a user