2022-05-23 05:05:59 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
exports.__esModule = true;
|
|
|
|
|
exports.CollectorApiDefinition = void 0;
|
|
|
|
|
exports.CollectorApiDefinition = {
|
|
|
|
|
/**
|
|
|
|
|
* 收藏(或取消收藏)
|
|
|
|
|
*/
|
|
|
|
|
toggle: {
|
2022-05-23 08:20:56 +00:00
|
|
|
|
method: 'post',
|
2022-05-23 05:05:59 +00:00
|
|
|
|
server: 'toggle',
|
|
|
|
|
client: function () { return '/collector/toggle'; }
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 检测是否收藏
|
|
|
|
|
*/
|
|
|
|
|
check: {
|
2022-05-23 08:20:56 +00:00
|
|
|
|
method: 'post',
|
2022-05-23 05:05:59 +00:00
|
|
|
|
server: 'check',
|
|
|
|
|
client: function () { return '/collector/check'; }
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 获取收藏的知识库
|
|
|
|
|
*/
|
|
|
|
|
wikis: {
|
2022-05-23 08:20:56 +00:00
|
|
|
|
method: 'get',
|
2022-05-23 05:05:59 +00:00
|
|
|
|
server: 'wikis',
|
|
|
|
|
client: function () { return '/collector/wikis'; }
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 获取收藏的文档
|
|
|
|
|
*/
|
|
|
|
|
documents: {
|
2022-05-23 08:20:56 +00:00
|
|
|
|
method: 'get',
|
2022-05-23 05:05:59 +00:00
|
|
|
|
server: 'documents',
|
|
|
|
|
client: function () { return '/collector/documents'; }
|
|
|
|
|
}
|
|
|
|
|
};
|