2022-04-02 09:57:30 +00:00
|
|
|
import { IUser } from './user';
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库状态枚举
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare enum WikiStatus {
|
|
|
|
private = "private",
|
|
|
|
public = "public"
|
|
|
|
}
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库成员状态枚举
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare enum WikiUserStatus {
|
|
|
|
applying = "applying",
|
|
|
|
inviting = "inviting",
|
|
|
|
normal = "normal"
|
|
|
|
}
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库成员角色枚举
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export declare enum WikiUserRole {
|
|
|
|
normal = "normal",
|
|
|
|
admin = "admin"
|
|
|
|
}
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库数据定义
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export interface IWiki {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
avatar: string;
|
|
|
|
description: string;
|
2022-04-02 09:57:30 +00:00
|
|
|
createUserId: IUser['id'];
|
2022-03-11 05:57:55 +00:00
|
|
|
createUser: IUser;
|
|
|
|
status: WikiStatus;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
}
|
2022-05-18 08:02:29 +00:00
|
|
|
/**
|
|
|
|
* 知识库成员数据定义
|
|
|
|
*/
|
2022-03-11 05:57:55 +00:00
|
|
|
export interface IWikiUser extends IUser {
|
|
|
|
userRole: WikiUserRole;
|
|
|
|
userStatus: WikiUserStatus;
|
|
|
|
isCreator: boolean;
|
|
|
|
}
|