refactor: 인벤토리 테이블 스펙과 도메인 계층 정비

This commit is contained in:
JiWoong Sul
2025-10-14 18:09:26 +09:00
parent 8d3b2c1e20
commit 1325109fba
32 changed files with 5550 additions and 290 deletions

View File

@@ -0,0 +1,18 @@
/// 공통 조회용 룩업 항목 엔티티.
class LookupItem {
LookupItem({
required this.id,
required this.name,
this.code,
this.isDefault = false,
this.isActive = true,
this.note,
});
final int id;
final String? code;
final String name;
final bool isDefault;
final bool isActive;
final String? note;
}

View File

@@ -0,0 +1,16 @@
import '../entities/lookup_item.dart';
/// 인벤토리 공통 룩업(타입/상태/승인 액션) 저장소 인터페이스.
abstract class InventoryLookupRepository {
/// 입출고 트랜잭션 타입 목록을 조회한다.
Future<List<LookupItem>> fetchTransactionTypes({bool activeOnly = true});
/// 입출고 트랜잭션 상태 목록을 조회한다.
Future<List<LookupItem>> fetchTransactionStatuses({bool activeOnly = true});
/// 결재 상태 목록을 조회한다.
Future<List<LookupItem>> fetchApprovalStatuses({bool activeOnly = true});
/// 결재 액션 목록을 조회한다.
Future<List<LookupItem>> fetchApprovalActions({bool activeOnly = true});
}