feat: 支持登录、个人信息存储

This commit is contained in:
richarjiang
2026-04-05 13:38:12 +08:00
parent 46368b8c89
commit 9ab78555cb
24 changed files with 3560 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
import { UserLevelProgress } from '../entities/user-level-progress.entity';
export interface IUserLevelProgressRepository {
findByUserId(userId: string): Promise<UserLevelProgress[]>;
findByUserAndLevel(
userId: string,
levelId: string,
): Promise<UserLevelProgress | null>;
create(data: Partial<UserLevelProgress>): UserLevelProgress;
save(progress: UserLevelProgress): Promise<UserLevelProgress>;
}