เพิ่ม Socket เข้าสู่หน้าหลัก , เปิดห้องแซท , รับ-ส่ง ข้อความ

This commit is contained in:
net 2024-02-16 16:20:18 +07:00 committed by Net
parent 0a98d96d38
commit 5b081878c4
4 changed files with 131 additions and 48 deletions

View file

@ -1,3 +1,10 @@
export interface SupportStatusUser {
socketId: string;
userId: string;
name: string;
role: string[];
}
export interface SupportIssueResponse {
result: SupportIssue[];
page: number;
@ -15,6 +22,7 @@ export interface SupportIssue {
status: string;
category: SupportIssueCategory;
unreadCount: number;
lastMessage: string;
}
export interface SupportIssueCategory {
@ -51,4 +59,4 @@ export interface SupportIssueMessage {
issueId: string;
}
export type { SupportMessageResponse, SupportIssueResponse };
export type { SupportMessageResponse, SupportIssueResponse, SupportStatusUser };