Files
koodo-reader/src/model/Book.ts
troyeguo aab813beb0 fix bug
Former-commit-id: b9b0238bc5da6a3b77f58536bf1d0cefd6383c44
2021-10-23 16:30:45 +08:00

41 lines
847 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class Book {
key: string;
name: string;
author: string;
description: string;
md5: string;
cover: string;
format: string;
publisher: string;
size: number;
path: string;
charset: string;
constructor(
key: string,
name: string,
author: string,
description: string,
md5: string,
cover: string,
format: string,
publisher: string,
size: number,
path: string,
charset: string
) {
this.key = key; // 数据库的键
this.name = name; // 书籍名
this.author = author; // 作者
this.description = description; // 书籍的描述
this.md5 = md5; //epub的md5值防止重复导入
this.cover = cover;
this.format = format;
this.publisher = publisher;
this.size = size;
this.path = path;
this.charset = charset;
}
}
export default Book;