mirror of https://github.com/fantasticit/think.git
38 lines
830 B
JavaScript
38 lines
830 B
JavaScript
"use strict";
|
|
exports.__esModule = true;
|
|
exports.CollectorApiDefinition = void 0;
|
|
exports.CollectorApiDefinition = {
|
|
/**
|
|
* 收藏(或取消收藏)
|
|
*/
|
|
toggle: {
|
|
method: 'post',
|
|
server: 'toggle',
|
|
client: function () { return '/collector/toggle'; }
|
|
},
|
|
/**
|
|
* 检测是否收藏
|
|
*/
|
|
check: {
|
|
method: 'post',
|
|
server: 'check',
|
|
client: function () { return '/collector/check'; }
|
|
},
|
|
/**
|
|
* 获取收藏的知识库
|
|
*/
|
|
wikis: {
|
|
method: 'get',
|
|
server: 'wikis',
|
|
client: function () { return '/collector/wikis'; }
|
|
},
|
|
/**
|
|
* 获取收藏的文档
|
|
*/
|
|
documents: {
|
|
method: 'get',
|
|
server: 'documents',
|
|
client: function () { return '/collector/documents'; }
|
|
}
|
|
};
|