feat: 手机验证码作为用户凭证
This commit is contained in:
4
src/types/mongoSchema.d.ts
vendored
4
src/types/mongoSchema.d.ts
vendored
@@ -11,7 +11,7 @@ export type ServiceName = 'openai';
|
||||
|
||||
export interface UserModelSchema {
|
||||
_id: string;
|
||||
email: string;
|
||||
username: string;
|
||||
password: string;
|
||||
balance: number;
|
||||
openaiKey: string;
|
||||
@@ -20,7 +20,7 @@ export interface UserModelSchema {
|
||||
|
||||
export interface AuthCodeSchema {
|
||||
_id: string;
|
||||
email: string;
|
||||
username: string;
|
||||
code: string;
|
||||
type: 'register' | 'findPassword';
|
||||
expiredTime: number;
|
||||
|
||||
7
src/types/user.d.ts
vendored
7
src/types/user.d.ts
vendored
@@ -1,11 +1,6 @@
|
||||
export enum UserNumberEnum {
|
||||
phone = 'phone',
|
||||
wx = 'wx'
|
||||
}
|
||||
|
||||
export interface UserType {
|
||||
_id: string;
|
||||
email: string;
|
||||
username: string;
|
||||
openaiKey: string;
|
||||
balance: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user