管理员可以看到所有会话了

This commit is contained in:
yml
2026-06-05 19:43:55 +08:00
parent 59093f8fd5
commit 92c603794a
5 changed files with 236 additions and 31 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ export interface ChatParticipant {
conversation_id: number
participant_type: 'user' | 'admin'
participant_id: number
role: 'renter' | 'owner' | 'support' | 'customer'
role: 'renter' | 'owner' | 'support' | 'customer' | 'admin'
remark: string
display_name: string
avatar_url: string
@@ -20,7 +20,7 @@ export interface ChatConversation {
type: string
title: string
status: string
role: 'renter' | 'owner' | 'support' | 'customer'
role: 'renter' | 'owner' | 'support' | 'customer' | 'admin'
participants?: ChatParticipant[]
last_message_id?: number
last_message_preview: string
@@ -35,7 +35,7 @@ export interface ChatMessage {
conversation_id: number
sender_type: 'user' | 'admin' | 'system'
sender_id: number
sender_role: 'renter' | 'owner' | 'support' | 'customer' | 'system'
sender_role: 'renter' | 'owner' | 'support' | 'customer' | 'system' | 'admin'
sender_name: string
sender_avatar: string
is_self: boolean