This commit is contained in:
net 2024-02-16 16:20:18 +07:00 committed by Net
parent f25a439804
commit 0a98d96d38
9 changed files with 6862 additions and 9 deletions

View file

@ -1,8 +1,54 @@
interface DataOption {
export interface SupportIssueResponse {
result: SupportIssue[];
page: number;
pageSize: number;
total: number;
}
export interface SupportIssue {
id: string;
createdByUserId: string;
createdByUserName: string;
createdAt: string;
updatedAt: string;
title: string;
status: string;
category: SupportIssueCategory;
unreadCount: number;
}
export interface SupportIssueCategory {
id: string;
name: string;
}
export type {
DataOption,
};
export interface SupportMessageResponse {
result: SupportIssueWithMessage;
page: number;
pageSize: number;
total: number;
}
export interface SupportIssueWithMessage {
id: string;
createdByUserId: string;
createdByUserName: string;
createdAt: string;
updatedAt: string;
title: string;
status: string;
message: SupportIssueMessage[];
}
export interface SupportIssueMessage {
id: string;
fromUserId: string;
fromUserName: string;
createdAt: string;
updatedAt: string;
content: string;
read: boolean;
issueId: string;
}
export type { SupportMessageResponse, SupportIssueResponse };