feat: 라이선스 및 창고 관리 API 연동 구현
- 라이선스 관리 API 연동 완료 - LicenseRemoteDataSource, LicenseService 구현 - LicenseListController, LicenseFormController API 연동 - 페이지네이션, 검색, 필터링 기능 추가 - 라이선스 할당/해제 기능 구현 - 창고 관리 API 연동 완료 - WarehouseRemoteDataSource, WarehouseService 구현 - WarehouseLocationListController, WarehouseLocationFormController API 연동 - 창고별 장비 조회 및 용량 관리 기능 추가 - DI 컨테이너에 새로운 서비스 등록 - API 통합 문서 업데이트 (전체 진행률 100% 달성)
This commit is contained in:
125
lib/data/models/license/license_dto.g.dart
Normal file
125
lib/data/models/license/license_dto.g.dart
Normal file
@@ -0,0 +1,125 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'license_dto.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$LicenseDtoImpl _$$LicenseDtoImplFromJson(Map<String, dynamic> json) =>
|
||||
_$LicenseDtoImpl(
|
||||
id: (json['id'] as num).toInt(),
|
||||
licenseKey: json['license_key'] as String,
|
||||
productName: json['product_name'] as String?,
|
||||
vendor: json['vendor'] as String?,
|
||||
licenseType: json['license_type'] as String?,
|
||||
userCount: (json['user_count'] as num?)?.toInt(),
|
||||
purchaseDate: json['purchase_date'] == null
|
||||
? null
|
||||
: DateTime.parse(json['purchase_date'] as String),
|
||||
expiryDate: json['expiry_date'] == null
|
||||
? null
|
||||
: DateTime.parse(json['expiry_date'] as String),
|
||||
purchasePrice: (json['purchase_price'] as num?)?.toDouble(),
|
||||
companyId: (json['company_id'] as num?)?.toInt(),
|
||||
branchId: (json['branch_id'] as num?)?.toInt(),
|
||||
assignedUserId: (json['assigned_user_id'] as num?)?.toInt(),
|
||||
remark: json['remark'] as String?,
|
||||
isActive: json['is_active'] as bool,
|
||||
createdAt: DateTime.parse(json['created_at'] as String),
|
||||
updatedAt: DateTime.parse(json['updated_at'] as String),
|
||||
companyName: json['company_name'] as String?,
|
||||
branchName: json['branch_name'] as String?,
|
||||
assignedUserName: json['assigned_user_name'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$LicenseDtoImplToJson(_$LicenseDtoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'license_key': instance.licenseKey,
|
||||
'product_name': instance.productName,
|
||||
'vendor': instance.vendor,
|
||||
'license_type': instance.licenseType,
|
||||
'user_count': instance.userCount,
|
||||
'purchase_date': instance.purchaseDate?.toIso8601String(),
|
||||
'expiry_date': instance.expiryDate?.toIso8601String(),
|
||||
'purchase_price': instance.purchasePrice,
|
||||
'company_id': instance.companyId,
|
||||
'branch_id': instance.branchId,
|
||||
'assigned_user_id': instance.assignedUserId,
|
||||
'remark': instance.remark,
|
||||
'is_active': instance.isActive,
|
||||
'created_at': instance.createdAt.toIso8601String(),
|
||||
'updated_at': instance.updatedAt.toIso8601String(),
|
||||
'company_name': instance.companyName,
|
||||
'branch_name': instance.branchName,
|
||||
'assigned_user_name': instance.assignedUserName,
|
||||
};
|
||||
|
||||
_$LicenseListResponseDtoImpl _$$LicenseListResponseDtoImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$LicenseListResponseDtoImpl(
|
||||
items: (json['items'] as List<dynamic>)
|
||||
.map((e) => LicenseDto.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
total: (json['total'] as num).toInt(),
|
||||
page: (json['page'] as num).toInt(),
|
||||
perPage: (json['per_page'] as num).toInt(),
|
||||
totalPages: (json['total_pages'] as num).toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$LicenseListResponseDtoImplToJson(
|
||||
_$LicenseListResponseDtoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'items': instance.items,
|
||||
'total': instance.total,
|
||||
'page': instance.page,
|
||||
'per_page': instance.perPage,
|
||||
'total_pages': instance.totalPages,
|
||||
};
|
||||
|
||||
_$ExpiringLicenseDtoImpl _$$ExpiringLicenseDtoImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ExpiringLicenseDtoImpl(
|
||||
id: (json['id'] as num).toInt(),
|
||||
licenseKey: json['license_key'] as String,
|
||||
productName: json['product_name'] as String?,
|
||||
companyName: json['company_name'] as String?,
|
||||
expiryDate: DateTime.parse(json['expiry_date'] as String),
|
||||
daysUntilExpiry: (json['days_until_expiry'] as num).toInt(),
|
||||
isActive: json['is_active'] as bool,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ExpiringLicenseDtoImplToJson(
|
||||
_$ExpiringLicenseDtoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'license_key': instance.licenseKey,
|
||||
'product_name': instance.productName,
|
||||
'company_name': instance.companyName,
|
||||
'expiry_date': instance.expiryDate.toIso8601String(),
|
||||
'days_until_expiry': instance.daysUntilExpiry,
|
||||
'is_active': instance.isActive,
|
||||
};
|
||||
|
||||
_$ExpiringLicenseListDtoImpl _$$ExpiringLicenseListDtoImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ExpiringLicenseListDtoImpl(
|
||||
items: (json['items'] as List<dynamic>)
|
||||
.map((e) => ExpiringLicenseDto.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
total: (json['total'] as num).toInt(),
|
||||
page: (json['page'] as num).toInt(),
|
||||
perPage: (json['per_page'] as num).toInt(),
|
||||
totalPages: (json['total_pages'] as num).toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ExpiringLicenseListDtoImplToJson(
|
||||
_$ExpiringLicenseListDtoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'items': instance.items,
|
||||
'total': instance.total,
|
||||
'page': instance.page,
|
||||
'per_page': instance.perPage,
|
||||
'total_pages': instance.totalPages,
|
||||
};
|
||||
Reference in New Issue
Block a user