feat: Implement full certificate management with upload, upsert, delete, and new domain models for staff certificates and their statuses.
This commit is contained in:
@@ -172,6 +172,9 @@ class StaffPaths {
|
||||
/// Manage professional certificates (e.g., food handling, CPR, etc.).
|
||||
static const String certificates = '/worker-main/certificates/';
|
||||
|
||||
/// Certificate upload page.
|
||||
static const String certificateUpload = '/worker-main/certificates/upload/';
|
||||
|
||||
// ==========================================================================
|
||||
// FINANCIAL INFORMATION
|
||||
// ==========================================================================
|
||||
|
||||
@@ -17,6 +17,7 @@ class VerificationService extends BaseCoreService {
|
||||
required String subjectType,
|
||||
required String subjectId,
|
||||
required String fileUri,
|
||||
String? category,
|
||||
Map<String, dynamic>? rules,
|
||||
}) async {
|
||||
final ApiResponse res = await action(() async {
|
||||
@@ -27,6 +28,7 @@ class VerificationService extends BaseCoreService {
|
||||
'subjectType': subjectType,
|
||||
'subjectId': subjectId,
|
||||
'fileUri': fileUri,
|
||||
if (category != null) 'category': category,
|
||||
if (rules != null) 'rules': rules,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user