2022-06-23 09:55:22 +00:00
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.StarApiDefinition = void 0;
|
|
|
|
exports.StarApiDefinition = {
|
|
|
|
/**
|
2022-06-29 16:03:02 +00:00
|
|
|
* 加星或取消
|
2022-06-23 09:55:22 +00:00
|
|
|
*/
|
2022-06-29 16:03:02 +00:00
|
|
|
toggleStar: {
|
2022-06-23 09:55:22 +00:00
|
|
|
method: 'post',
|
|
|
|
server: 'toggle',
|
|
|
|
client: function () { return '/star/toggle'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 检测是否收藏
|
|
|
|
*/
|
2022-06-29 16:03:02 +00:00
|
|
|
isStared: {
|
2022-06-23 09:55:22 +00:00
|
|
|
method: 'post',
|
2022-06-29 16:03:02 +00:00
|
|
|
server: 'isStared',
|
|
|
|
client: function () { return '/star/isStared'; }
|
2022-06-23 09:55:22 +00:00
|
|
|
},
|
|
|
|
/**
|
2022-06-29 16:03:02 +00:00
|
|
|
* 获取组织内加星的知识库
|
2022-06-23 09:55:22 +00:00
|
|
|
*/
|
2022-06-29 16:03:02 +00:00
|
|
|
getStarWikisInOrganization: {
|
2022-06-23 09:55:22 +00:00
|
|
|
method: 'get',
|
2022-06-29 16:03:02 +00:00
|
|
|
server: '/:organizationId/wikis',
|
|
|
|
client: function (organizationId) { return "/star/".concat(organizationId, "/wikis"); }
|
2022-06-23 09:55:22 +00:00
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 获取知识库内加星的文章
|
|
|
|
*/
|
2022-06-29 16:03:02 +00:00
|
|
|
getStarDocumentsInWiki: {
|
2022-06-23 09:55:22 +00:00
|
|
|
method: 'get',
|
2022-06-29 16:03:02 +00:00
|
|
|
server: '/wiki/documents',
|
|
|
|
client: function () { return "/star/wiki/documents"; }
|
2022-06-23 09:55:22 +00:00
|
|
|
},
|
|
|
|
/**
|
2022-06-29 16:03:02 +00:00
|
|
|
* 获取组织内加星的文档
|
2022-06-23 09:55:22 +00:00
|
|
|
*/
|
2022-06-29 16:03:02 +00:00
|
|
|
getStarDocumentsInOrganization: {
|
2022-06-23 09:55:22 +00:00
|
|
|
method: 'get',
|
2022-06-29 16:03:02 +00:00
|
|
|
server: '/:organizationId/documents',
|
|
|
|
client: function (organizationId) { return "/star/".concat(organizationId, "/documents"); }
|
2022-06-23 09:55:22 +00:00
|
|
|
}
|
|
|
|
};
|