backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,11 @@ mixin _$AuthUser {
|
||||
throw _privateConstructorUsedError; // API doesn't return username
|
||||
String get email => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get role => throw _privateConstructorUsedError;
|
||||
String get role =>
|
||||
throw _privateConstructorUsedError; // Default to 'admin' if not provided
|
||||
String? get phone =>
|
||||
throw _privateConstructorUsedError; // Added for /auth/me API
|
||||
String? get mobile => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this AuthUser to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@@ -42,7 +46,14 @@ abstract class $AuthUserCopyWith<$Res> {
|
||||
factory $AuthUserCopyWith(AuthUser value, $Res Function(AuthUser) then) =
|
||||
_$AuthUserCopyWithImpl<$Res, AuthUser>;
|
||||
@useResult
|
||||
$Res call({int id, String? username, String email, String name, String role});
|
||||
$Res call(
|
||||
{int id,
|
||||
String? username,
|
||||
String email,
|
||||
String name,
|
||||
String role,
|
||||
String? phone,
|
||||
String? mobile});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -65,6 +76,8 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
Object? phone = freezed,
|
||||
Object? mobile = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
id: null == id
|
||||
@@ -87,6 +100,14 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
? _value.role
|
||||
: role // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
phone: freezed == phone
|
||||
? _value.phone
|
||||
: phone // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
mobile: freezed == mobile
|
||||
? _value.mobile
|
||||
: mobile // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
@@ -99,7 +120,14 @@ abstract class _$$AuthUserImplCopyWith<$Res>
|
||||
__$$AuthUserImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int id, String? username, String email, String name, String role});
|
||||
$Res call(
|
||||
{int id,
|
||||
String? username,
|
||||
String email,
|
||||
String name,
|
||||
String role,
|
||||
String? phone,
|
||||
String? mobile});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -120,6 +148,8 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
Object? phone = freezed,
|
||||
Object? mobile = freezed,
|
||||
}) {
|
||||
return _then(_$AuthUserImpl(
|
||||
id: null == id
|
||||
@@ -142,6 +172,14 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
? _value.role
|
||||
: role // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
phone: freezed == phone
|
||||
? _value.phone
|
||||
: phone // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
mobile: freezed == mobile
|
||||
? _value.mobile
|
||||
: mobile // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -154,7 +192,9 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
this.username,
|
||||
required this.email,
|
||||
required this.name,
|
||||
this.role = 'admin'});
|
||||
this.role = 'admin',
|
||||
this.phone,
|
||||
this.mobile});
|
||||
|
||||
factory _$AuthUserImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$AuthUserImplFromJson(json);
|
||||
@@ -171,10 +211,16 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
@override
|
||||
@JsonKey()
|
||||
final String role;
|
||||
// Default to 'admin' if not provided
|
||||
@override
|
||||
final String? phone;
|
||||
// Added for /auth/me API
|
||||
@override
|
||||
final String? mobile;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AuthUser(id: $id, username: $username, email: $email, name: $name, role: $role)';
|
||||
return 'AuthUser(id: $id, username: $username, email: $email, name: $name, role: $role, phone: $phone, mobile: $mobile)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -187,12 +233,15 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
other.username == username) &&
|
||||
(identical(other.email, email) || other.email == email) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.role, role) || other.role == role));
|
||||
(identical(other.role, role) || other.role == role) &&
|
||||
(identical(other.phone, phone) || other.phone == phone) &&
|
||||
(identical(other.mobile, mobile) || other.mobile == mobile));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id, username, email, name, role);
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, id, username, email, name, role, phone, mobile);
|
||||
|
||||
/// Create a copy of AuthUser
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -216,7 +265,9 @@ abstract class _AuthUser implements AuthUser {
|
||||
final String? username,
|
||||
required final String email,
|
||||
required final String name,
|
||||
final String role}) = _$AuthUserImpl;
|
||||
final String role,
|
||||
final String? phone,
|
||||
final String? mobile}) = _$AuthUserImpl;
|
||||
|
||||
factory _AuthUser.fromJson(Map<String, dynamic> json) =
|
||||
_$AuthUserImpl.fromJson;
|
||||
@@ -230,7 +281,11 @@ abstract class _AuthUser implements AuthUser {
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
String get role;
|
||||
String get role; // Default to 'admin' if not provided
|
||||
@override
|
||||
String? get phone; // Added for /auth/me API
|
||||
@override
|
||||
String? get mobile;
|
||||
|
||||
/// Create a copy of AuthUser
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
|
||||
Reference in New Issue
Block a user