Files
ezbookkeeping/src/models/auth_response.ts
T
2025-06-29 20:25:21 +08:00

17 lines
498 B
TypeScript

import type { ApplicationCloudSetting } from '@/core/setting.ts';
import type { UserBasicInfo } from './user.ts';
export interface AuthResponse {
readonly token: string;
readonly need2FA: boolean;
readonly user?: UserBasicInfo;
readonly applicationCloudSettings?: ApplicationCloudSetting[];
readonly notificationContent?: string;
}
export interface RegisterResponse extends AuthResponse {
readonly needVerifyEmail: boolean;
readonly presetCategoriesSaved: boolean;
}