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