- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
596 B
Dart
20 lines
596 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'auth_user.freezed.dart';
|
|
part 'auth_user.g.dart';
|
|
|
|
@freezed
|
|
class AuthUser with _$AuthUser {
|
|
const factory AuthUser({
|
|
required int id,
|
|
String? username, // API doesn't return username
|
|
required String email,
|
|
required String name,
|
|
@Default('admin') String role, // Default to 'admin' if not provided
|
|
String? phone, // Added for /auth/me API
|
|
String? mobile, // Added for /auth/me API
|
|
}) = _AuthUser;
|
|
|
|
factory AuthUser.fromJson(Map<String, dynamic> json) =>
|
|
_$AuthUserFromJson(json);
|
|
} |