- CLAUDE.md 대폭 개선: 개발 가이드라인 및 프로젝트 상태 문서화 - 백엔드 API 통합: 모든 엔티티 간 Foreign Key 관계 완벽 구현 - UI 일관성 강화: shadcn_ui 컴포넌트 표준화 적용 - 데이터 모델 개선: DTO 및 모델 클래스 백엔드 스키마와 100% 일치 - 사용자 관리: 회사 연결, 중복 검사, 입력 검증 기능 추가 - 창고 관리: 우편번호 연결, 중복 검사 기능 강화 - 회사 관리: 우편번호 연결, 중복 검사 로직 구현 - 장비 관리: 불필요한 카테고리 필드 제거, 벤더-모델 관계 정리 - 우편번호 시스템: 검색 다이얼로그 Provider 버그 수정 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
363 lines
11 KiB
Dart
363 lines
11 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of 'user_model.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
User _$UserFromJson(Map<String, dynamic> json) {
|
|
return _User.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$User {
|
|
/// 사용자 ID (자동 생성)
|
|
int? get id => throw _privateConstructorUsedError;
|
|
|
|
/// 이름 (필수)
|
|
String get name => throw _privateConstructorUsedError;
|
|
|
|
/// 이메일 (선택)
|
|
String? get email => throw _privateConstructorUsedError;
|
|
|
|
/// 전화번호 (선택, "010-1234-5678" 형태)
|
|
String? get phone => throw _privateConstructorUsedError;
|
|
|
|
/// UI용 필드들 (백엔드 저장하지 않음)
|
|
String get username => throw _privateConstructorUsedError; // UI 호환용
|
|
UserRole get role => throw _privateConstructorUsedError; // UI 호환용
|
|
bool get isActive => throw _privateConstructorUsedError; // UI 호환용
|
|
DateTime? get createdAt => throw _privateConstructorUsedError; // UI 호환용
|
|
DateTime? get updatedAt => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this User to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserCopyWith<$Res> {
|
|
factory $UserCopyWith(User value, $Res Function(User) then) =
|
|
_$UserCopyWithImpl<$Res, User>;
|
|
@useResult
|
|
$Res call(
|
|
{int? id,
|
|
String name,
|
|
String? email,
|
|
String? phone,
|
|
String username,
|
|
UserRole role,
|
|
bool isActive,
|
|
DateTime? createdAt,
|
|
DateTime? updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
implements $UserCopyWith<$Res> {
|
|
_$UserCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = freezed,
|
|
Object? name = null,
|
|
Object? email = freezed,
|
|
Object? phone = freezed,
|
|
Object? username = null,
|
|
Object? role = null,
|
|
Object? isActive = null,
|
|
Object? createdAt = freezed,
|
|
Object? updatedAt = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: freezed == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as UserRole,
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
createdAt: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
|
|
factory _$$UserImplCopyWith(
|
|
_$UserImpl value, $Res Function(_$UserImpl) then) =
|
|
__$$UserImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int? id,
|
|
String name,
|
|
String? email,
|
|
String? phone,
|
|
String username,
|
|
UserRole role,
|
|
bool isActive,
|
|
DateTime? createdAt,
|
|
DateTime? updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserImplCopyWithImpl<$Res>
|
|
extends _$UserCopyWithImpl<$Res, _$UserImpl>
|
|
implements _$$UserImplCopyWith<$Res> {
|
|
__$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = freezed,
|
|
Object? name = null,
|
|
Object? email = freezed,
|
|
Object? phone = freezed,
|
|
Object? username = null,
|
|
Object? role = null,
|
|
Object? isActive = null,
|
|
Object? createdAt = freezed,
|
|
Object? updatedAt = freezed,
|
|
}) {
|
|
return _then(_$UserImpl(
|
|
id: freezed == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as UserRole,
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
createdAt: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UserImpl implements _User {
|
|
const _$UserImpl(
|
|
{this.id,
|
|
required this.name,
|
|
this.email,
|
|
this.phone,
|
|
this.username = '',
|
|
this.role = UserRole.staff,
|
|
this.isActive = true,
|
|
this.createdAt,
|
|
this.updatedAt});
|
|
|
|
factory _$UserImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UserImplFromJson(json);
|
|
|
|
/// 사용자 ID (자동 생성)
|
|
@override
|
|
final int? id;
|
|
|
|
/// 이름 (필수)
|
|
@override
|
|
final String name;
|
|
|
|
/// 이메일 (선택)
|
|
@override
|
|
final String? email;
|
|
|
|
/// 전화번호 (선택, "010-1234-5678" 형태)
|
|
@override
|
|
final String? phone;
|
|
|
|
/// UI용 필드들 (백엔드 저장하지 않음)
|
|
@override
|
|
@JsonKey()
|
|
final String username;
|
|
// UI 호환용
|
|
@override
|
|
@JsonKey()
|
|
final UserRole role;
|
|
// UI 호환용
|
|
@override
|
|
@JsonKey()
|
|
final bool isActive;
|
|
// UI 호환용
|
|
@override
|
|
final DateTime? createdAt;
|
|
// UI 호환용
|
|
@override
|
|
final DateTime? updatedAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'User(id: $id, name: $name, email: $email, phone: $phone, username: $username, role: $role, isActive: $isActive, createdAt: $createdAt, updatedAt: $updatedAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.username, username) ||
|
|
other.username == username) &&
|
|
(identical(other.role, role) || other.role == role) &&
|
|
(identical(other.isActive, isActive) ||
|
|
other.isActive == isActive) &&
|
|
(identical(other.createdAt, createdAt) ||
|
|
other.createdAt == createdAt) &&
|
|
(identical(other.updatedAt, updatedAt) ||
|
|
other.updatedAt == updatedAt));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name, email, phone, username,
|
|
role, isActive, createdAt, updatedAt);
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
|
|
__$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UserImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _User implements User {
|
|
const factory _User(
|
|
{final int? id,
|
|
required final String name,
|
|
final String? email,
|
|
final String? phone,
|
|
final String username,
|
|
final UserRole role,
|
|
final bool isActive,
|
|
final DateTime? createdAt,
|
|
final DateTime? updatedAt}) = _$UserImpl;
|
|
|
|
factory _User.fromJson(Map<String, dynamic> json) = _$UserImpl.fromJson;
|
|
|
|
/// 사용자 ID (자동 생성)
|
|
@override
|
|
int? get id;
|
|
|
|
/// 이름 (필수)
|
|
@override
|
|
String get name;
|
|
|
|
/// 이메일 (선택)
|
|
@override
|
|
String? get email;
|
|
|
|
/// 전화번호 (선택, "010-1234-5678" 형태)
|
|
@override
|
|
String? get phone;
|
|
|
|
/// UI용 필드들 (백엔드 저장하지 않음)
|
|
@override
|
|
String get username; // UI 호환용
|
|
@override
|
|
UserRole get role; // UI 호환용
|
|
@override
|
|
bool get isActive; // UI 호환용
|
|
@override
|
|
DateTime? get createdAt; // UI 호환용
|
|
@override
|
|
DateTime? get updatedAt;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|