import { NotificationType } from './enum'; // 最小用户信息 export interface User{ id: string; username: string; } // 认证 export interface LoginRequest{ username: string; password: string; } export interface LoginResponse{ user: User; sessionId: string; } export interface RegisterRequest { username: string; email: string; password: string; } export interface RegisterResponse { user: User; sessionId: string; } export interface ChangePasswordRequest { // 暂时用不到 oldPassword: string; newPassword: string; } // 目前只用得到session // export interface RefreshTokenRequest { // sessionId: string; // } // export interface RefreshTokenResponse { // sessionId: string; // } // 用户通知(暂时用不到) export interface UserNotification { id: string; userId: string; type: NotificationType; content: string; isRead: boolean; createdAt: Date; }