63 lines
1.0 KiB
TypeScript
63 lines
1.0 KiB
TypeScript
export interface Genre {
|
|
id: string
|
|
name: string
|
|
slug: string
|
|
description: string
|
|
icon: string
|
|
}
|
|
|
|
export interface Novel {
|
|
id: string
|
|
title: string
|
|
slug: string
|
|
author: string
|
|
coverColor: string
|
|
description: string
|
|
genres: string[]
|
|
status: "Đang ra" | "Hoàn thành" | "Tạm ngưng"
|
|
totalChapters: number
|
|
views: number
|
|
rating: number
|
|
ratingCount: number
|
|
bookmarkCount: number
|
|
lastUpdated: string
|
|
createdAt: string
|
|
}
|
|
|
|
export interface Chapter {
|
|
id: string
|
|
novelId: string
|
|
number: number
|
|
title: string
|
|
content: string
|
|
views: number
|
|
createdAt: string
|
|
}
|
|
|
|
export interface User {
|
|
id: string
|
|
username: string
|
|
email: string
|
|
avatarColor: string
|
|
avatarUrl?: string
|
|
createdAt: string
|
|
}
|
|
|
|
export interface Comment {
|
|
id: string
|
|
userId: string
|
|
username: string
|
|
avatarColor: string
|
|
novelId: string
|
|
chapterId?: string
|
|
content: string
|
|
createdAt: string
|
|
}
|
|
|
|
export interface Bookmark {
|
|
novelId: string
|
|
lastChapterId?: string
|
|
lastChapterNumber?: number
|
|
addedAt: string
|
|
}
|