feat(calls): 微信语音列表加今日统计卡片+通话时间范围筛选+客户跳转带通话时间定位(对齐云客)

- GET /api/calls/stats:今日(Asia/Shanghai)好友呼入/外呼量+群量+时长聚合(@chatroom判群)
- CallList:5张统计卡片(仅微信语音tab)+datetimerange筛选(服务端start/end)+viewCallCustomer带?start定位
- TDD新增stats聚合测试,全量绿

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-20 11:08:13 +08:00
parent 6c9245a682
commit 4aeed003a4
6 changed files with 188 additions and 12 deletions
+14
View File
@@ -194,6 +194,20 @@ class GroupMemberOut(BaseModel):
avatar: str | None = None
class CallStatsOut(BaseModel):
"""今日微信语音统计卡片(GET /api/calls/stats,对齐云客语音列表顶部)。
好友呼入/外呼量与时长、群语音量与群录音时长;时长单位秒(call_duration 累加)。
"""
friend_incoming: int
friend_outgoing: int
group_count: int
friend_incoming_duration: int
friend_outgoing_duration: int
group_duration: int
class PhoneCallOut(BaseModel):
"""Phone / voice call record. ``channel`` is the call-type.