think/packages/domains/lib/models/wiki.d.ts

46 lines
847 B
TypeScript
Raw Normal View History

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;
}