Files
superport/lib/data/models/stock_status_dto.dart
JiWoong Sul c419f8f458 backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별
- Phase 1: 33개 파일 삭제 예정 (100% 안전)
- Phase 2: 30개 파일 삭제 검토 예정
- Phase 3: 19개 파일 수동 검토 예정

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-02 19:51:40 +09:00

34 lines
1.2 KiB
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'stock_status_dto.freezed.dart';
part 'stock_status_dto.g.dart';
/// 재고 현황 DTO (백엔드 stock-status API 응답)
@freezed
class StockStatusDto with _$StockStatusDto {
const factory StockStatusDto({
@JsonKey(name: 'equipments_id') required int equipmentsId,
@JsonKey(name: 'warehouses_id') required int warehousesId,
@JsonKey(name: 'equipment_serial') required String equipmentSerial,
@JsonKey(name: 'model_name') String? modelName,
@JsonKey(name: 'warehouse_name') required String warehouseName,
@JsonKey(name: 'current_quantity') required int currentQuantity,
@JsonKey(name: 'last_transaction_date') DateTime? lastTransactionDate,
}) = _StockStatusDto;
factory StockStatusDto.fromJson(Map<String, dynamic> json) =>
_$StockStatusDtoFromJson(json);
}
/// 재고 현황 목록 응답 DTO
@freezed
class StockStatusListResponse with _$StockStatusListResponse {
const factory StockStatusListResponse({
required List<StockStatusDto> items,
}) = _StockStatusListResponse;
factory StockStatusListResponse.fromJson(List<dynamic> json) =>
StockStatusListResponse(
items: json.map((item) => StockStatusDto.fromJson(item)).toList(),
);
}