mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
4.6.4 (#588)
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
export enum UserStatusEnum {
|
||||
active = 'active',
|
||||
forbidden = 'forbidden'
|
||||
}
|
||||
export const userStatusMap = {
|
||||
[UserStatusEnum.active]: {
|
||||
label: 'support.user.status.active'
|
||||
},
|
||||
[UserStatusEnum.forbidden]: {
|
||||
label: 'support.user.status.forbidden'
|
||||
}
|
||||
};
|
||||
|
||||
export enum OAuthEnum {
|
||||
github = 'github',
|
||||
google = 'google'
|
||||
}
|
||||
|
||||
export enum UserAuthTypeEnum {
|
||||
register = 'register',
|
||||
findPassword = 'findPassword'
|
||||
}
|
||||
|
3
packages/global/support/user/type.d.ts
vendored
3
packages/global/support/user/type.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import { InformTypeEnum } from './constant';
|
||||
import { InformTypeEnum, UserStatusEnum } from './constant';
|
||||
import { TeamItemType } from './team/type';
|
||||
|
||||
export type UserModelSchema = {
|
||||
@@ -12,6 +12,7 @@ export type UserModelSchema = {
|
||||
openaiKey: string;
|
||||
createTime: number;
|
||||
timezone: string;
|
||||
status: `${UserStatusEnum}`;
|
||||
openaiAccount?: {
|
||||
key: string;
|
||||
baseUrl: string;
|
||||
|
Reference in New Issue
Block a user