refactor: 인벤토리 테이블 스펙과 도메인 계층 정비
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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});
|
||||
}
|
||||
Reference in New Issue
Block a user