think/packages/domains/lib/api/collector.d.ts

50 lines
1.0 KiB
TypeScript

import { IDocument, IWiki, CollectType } from '../models';
export declare type CollectorApiTypeDefinition = {
toggle: {
request: {
targetId: IDocument['id'] | IWiki['id'];
type: CollectType;
};
};
check: {
request: {
targetId: IDocument['id'] | IWiki['id'];
type: CollectType;
};
};
};
export declare const CollectorApiDefinition: {
/**
* 收藏(或取消收藏)
*/
toggle: {
method: "Post";
server: "toggle";
client: () => string;
};
/**
* 检测是否收藏
*/
check: {
method: "Post";
server: "check";
client: () => string;
};
/**
* 获取收藏的知识库
*/
wikis: {
method: "Post";
server: "wikis";
client: () => string;
};
/**
* 获取收藏的文档
*/
documents: {
method: "Post";
server: "documents";
client: () => string;
};
};