Files
learn-languages/src/modules/auth/auth-repository-dto.ts
goddonebianu 804c28ada9 refactor: 修复 modules 三层架构违规
- auth: actionDeleteAccount 改用 service+repo,forgot-password 完整三层实现
- card: serviceCheckCardOwnership 替代直接调用 repository
- deck: 移除 service 层的 use server 指令
- dictionary: 数据转换逻辑从 repository 移到 service
- ocr: 认证移到 action 层,跨模块调用改用 service
- translator: genIPA/genLanguage 改用 service 层
2026-03-11 09:40:53 +08:00

37 lines
736 B
TypeScript

// Repository layer DTOs for auth module - User profile operations
// User profile data types
export type RepoOutputUserProfile = {
id: string;
email: string;
emailVerified: boolean;
username: string | null;
displayUsername: string | null;
image: string | null;
bio: string | null;
createdAt: Date;
updatedAt: Date;
} | null;
// Input types
export type RepoInputFindUserByUsername = {
username: string;
};
export type RepoInputFindUserById = {
id: string;
};
export type RepoInputFindUserByEmail = {
email: string;
};
// Delete user cascade types
export type RepoInputDeleteUserCascade = {
userId: string;
};
export type RepoOutputDeleteUserCascade = {
success: boolean;
};