mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
v4.5.2 (#439)
This commit is contained in:
9
packages/global/support/user/constant.ts
Normal file
9
packages/global/support/user/constant.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export enum InformTypeEnum {
|
||||
system = 'system'
|
||||
}
|
||||
|
||||
export const InformTypeMap = {
|
||||
[InformTypeEnum.system]: {
|
||||
label: '系统通知'
|
||||
}
|
||||
};
|
12
packages/global/support/user/type.d.ts
vendored
12
packages/global/support/user/type.d.ts
vendored
@@ -1,3 +1,5 @@
|
||||
import { InformTypeEnum } from './constant';
|
||||
|
||||
export type UserModelSchema = {
|
||||
_id: string;
|
||||
username: string;
|
||||
@@ -18,3 +20,13 @@ export type UserModelSchema = {
|
||||
datasetMaxCount?: number;
|
||||
};
|
||||
};
|
||||
|
||||
export type UserInformSchema = {
|
||||
_id: string;
|
||||
userId: string;
|
||||
time: Date;
|
||||
type: `${InformTypeEnum}`;
|
||||
title: string;
|
||||
content: string;
|
||||
read: boolean;
|
||||
};
|
||||
|
Reference in New Issue
Block a user