2022-04-02 17:57:30 +08:00
|
|
|
import { IUser } from './user';
|
2022-03-11 13:57:55 +08:00
|
|
|
export declare enum WikiStatus {
|
|
|
|
private = "private",
|
|
|
|
public = "public"
|
|
|
|
}
|
|
|
|
export declare enum WikiUserStatus {
|
|
|
|
applying = "applying",
|
|
|
|
inviting = "inviting",
|
|
|
|
normal = "normal"
|
|
|
|
}
|
|
|
|
export declare enum WikiUserRole {
|
|
|
|
normal = "normal",
|
|
|
|
admin = "admin"
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
export interface IWikiUser extends IUser {
|
|
|
|
userRole: WikiUserRole;
|
|
|
|
userStatus: WikiUserStatus;
|
|
|
|
isCreator: boolean;
|
|
|
|
}
|