-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtemplate.js
More file actions
52 lines (46 loc) · 1.04 KB
/
template.js
File metadata and controls
52 lines (46 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* 一些约定如下:
*
* 1.如果需要 AES 能力,请在头部声明 require("crypto-js");
* 声明后可直接使用 CryptoJS (用法同 crypto-js 库)
*
* 2.若需要存储数据,可使用 localStorage 函数,用法同浏览器环境
*
* 3.书源内若返回值为对象,均需要使用 JSON.stringify() 进行编码
*/
/**
* 搜索
* @params {string} key
* @returns {[{name, author, cover, detail}]}
*/
const search = (key) => {}
/**
* 详情
* @params {string} url
* @returns {[{summary, status, category, words, update, lastChapter, catalog}]}
*/
const detail = (url) => {}
/**
* 目录
* @params {string} url
* @returns {[{name, url, vip}]}
*/
const catalog = (url) => {}
/**
* 章节
* @params {string} url
* @returns {string}
*/
const chapter = (url) => {}
/**
* 个人
* @returns {{basic:[{name, value, url}], extra:[{name, type, method, times}]}}
*/
const profile = () => {}
var bookSource = JSON.stringify({
name: '示例',
url: 'example.com',
version: 100,
authorization: '',
cookies: [],
})