결재 템플릿 CRUD 화면과 컨트롤러 정식화
This commit is contained in:
@@ -1,7 +1,29 @@
|
||||
import 'package:superport_v2/core/common/models/paginated_result.dart';
|
||||
|
||||
import '../entities/approval_template.dart';
|
||||
|
||||
abstract class ApprovalTemplateRepository {
|
||||
Future<List<ApprovalTemplate>> list({bool activeOnly = true});
|
||||
Future<PaginatedResult<ApprovalTemplate>> list({
|
||||
int page = 1,
|
||||
int pageSize = 20,
|
||||
String? query,
|
||||
bool? isActive,
|
||||
});
|
||||
|
||||
Future<ApprovalTemplate> fetchDetail(int id, {bool includeSteps = true});
|
||||
|
||||
Future<ApprovalTemplate> create(
|
||||
ApprovalTemplateInput input, {
|
||||
List<ApprovalTemplateStepInput> steps = const [],
|
||||
});
|
||||
|
||||
Future<ApprovalTemplate> update(
|
||||
int id,
|
||||
ApprovalTemplateInput input, {
|
||||
List<ApprovalTemplateStepInput>? steps,
|
||||
});
|
||||
|
||||
Future<void> delete(int id);
|
||||
|
||||
Future<ApprovalTemplate> restore(int id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user