mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add maintainer field for doc (#101)
This commit is contained in:
1 parent
7bde6a922c
commit
da32c79f21
24 files changed
+85
-74
No files matched your search
@@ -89,6 +89,7 @@ export interface User extends Record<string, any> {
|
||||
perm: bigint,
|
||||
scope: bigint,
|
||||
role: string,
|
||||
own<T extends { owner: number, maintainer?: number[] }>(doc: T): boolean;
|
||||
hasPerm: (...perm: bigint[]) => boolean,
|
||||
hasPriv: (...priv: number[]) => boolean,
|
||||
checkPassword: (password: string) => void,
|
||||
@@ -171,11 +172,12 @@ export type ContentNode = PlainContentNode | TextContentNode | SampleContentNode
|
||||
export type Content = string | ContentNode[] | Record<string, ContentNode[]>;
|
||||
|
||||
export interface Document {
|
||||
_id: ObjectID,
|
||||
docId: any,
|
||||
docType: number,
|
||||
domainId: string,
|
||||
owner: number,
|
||||
_id: ObjectID;
|
||||
docId: any;
|
||||
docType: number;
|
||||
domainId: string;
|
||||
owner: number;
|
||||
maintainer?: number[];
|
||||
}
|
||||
|
||||
declare module './model/problem' {
|
||||
|
||||
Reference in new issue
Block a user