管理员可以看到所有会话了
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user