mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-06 18:18:45 +08:00
36 lines
722 B
TypeScript
36 lines
722 B
TypeScript
import {UserStateSubject} from "./UserStateSubject";
|
|
|
|
export default class DoubanSubject {
|
|
id: string;
|
|
title: string;
|
|
type: string;
|
|
score: number;
|
|
image: string;
|
|
url: string;
|
|
desc: string;
|
|
publisher: string;
|
|
datePublished: Date;
|
|
genre: string[];
|
|
userState?: UserStateSubject;
|
|
}
|
|
|
|
const ParameterMap: Map<string, string> = new Map([
|
|
['id', ''],
|
|
]);
|
|
|
|
export const DoubanParameter = {
|
|
ID: '{{id}}',
|
|
TITLE: '{{title}}',
|
|
TYPE: '{{type}}',
|
|
SCORE: '{{score}}',
|
|
IMAGE: '{{image}}',
|
|
URL: '{{url}}',
|
|
DESC: '{{desc}}',
|
|
PUBLISHER: '{{publisher}}',
|
|
DATE_PUBLISHED: '{{datePublished}}',
|
|
TIME_PUBLISHED: '{{timePublished}}',
|
|
GENRE: '{{genre}}',
|
|
CURRENT_DATE: '{{currentDate}}',
|
|
CURRENT_TIME: '{{currentTime}}',
|
|
}
|