2022-06-30 06:20:38 +00:00
|
|
|
import { WikiStatus, DocumentStatus, IWiki, IDocument } from './models';
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库状态列表数据
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare const WIKI_STATUS_LIST: {
|
|
|
|
value: WikiStatus;
|
|
|
|
label: string;
|
|
|
|
}[];
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库成员角色列表数据
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare const WIKI_USER_ROLES: {
|
|
|
|
value: string;
|
|
|
|
label: string;
|
|
|
|
}[];
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 文档状态列表数据
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare const DOCUMENT_STATUS: {
|
|
|
|
value: DocumentStatus;
|
|
|
|
label: string;
|
|
|
|
}[];
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 获取知识库状态对应文本
|
|
|
|
* @param wiki 实例数据
|
|
|
|
* @returns
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare const getWikiStatusText: (wiki: IWiki) => string;
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 检查知识库是否公开
|
|
|
|
* @param currentStatus wiki 实例数据的 status 字段
|
|
|
|
* @returns
|
|
|
|
*/
|
2022-04-02 09:57:30 +00:00
|
|
|
export declare const isPublicWiki: (currentStatus: IWiki['status']) => boolean;
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 检查文档是否公开
|
|
|
|
* @param currentStatus document 实例数据的 status 字段
|
|
|
|
* @returns
|
|
|
|
*/
|
2022-04-02 09:57:30 +00:00
|
|
|
export declare const isPublicDocument: (currentStatus: IDocument['status']) => boolean;
|