feat: complete reporting and filing workflows
This commit is contained in:
@@ -96,14 +96,14 @@ export class AdminSmsConfigController {
|
||||
|
||||
@Post('drainage-infos/:id/approve')
|
||||
@RequireRecentAuthentication()
|
||||
approveDrainageInfo(@Param('id') itemId: string, @Body() body: ReviewDto) {
|
||||
return this.smsConfig.approveDrainageInfo(itemId, body);
|
||||
approveDrainageInfo(@Param('id') itemId: string, @Body() body: ReviewDto, @CurrentSessionUserId() reviewerId?: string) {
|
||||
return this.smsConfig.approveDrainageInfo(itemId, { ...body, reviewerId });
|
||||
}
|
||||
|
||||
@Post('drainage-infos/:id/reject')
|
||||
@RequireRecentAuthentication()
|
||||
rejectDrainageInfo(@Param('id') itemId: string, @Body() body: ReviewDto) {
|
||||
return this.smsConfig.rejectDrainageInfo(itemId, body);
|
||||
rejectDrainageInfo(@Param('id') itemId: string, @Body() body: ReviewDto, @CurrentSessionUserId() reviewerId?: string) {
|
||||
return this.smsConfig.rejectDrainageInfo(itemId, { ...body, reviewerId });
|
||||
}
|
||||
|
||||
@Post('drainage-infos/:id/status')
|
||||
@@ -140,8 +140,8 @@ export class AdminSmsConfigController {
|
||||
|
||||
@Post('signatures/:id/reject')
|
||||
@RequireRecentAuthentication()
|
||||
rejectSignature(@Param('id') signatureId: string, @Body() body: ReviewDto) {
|
||||
return this.smsConfig.rejectSignature(signatureId, body);
|
||||
rejectSignature(@Param('id') signatureId: string, @Body() body: ReviewDto, @CurrentSessionUserId() reviewerId?: string) {
|
||||
return this.smsConfig.rejectSignature(signatureId, { ...body, reviewerId });
|
||||
}
|
||||
|
||||
@Post('templates/:id/approve')
|
||||
@@ -152,8 +152,8 @@ export class AdminSmsConfigController {
|
||||
|
||||
@Post('templates/:id/reject')
|
||||
@RequireRecentAuthentication()
|
||||
rejectTemplate(@Param('id') templateId: string, @Body() body: ReviewDto) {
|
||||
return this.smsConfig.rejectTemplate(templateId, body);
|
||||
rejectTemplate(@Param('id') templateId: string, @Body() body: ReviewDto, @CurrentSessionUserId() reviewerId?: string) {
|
||||
return this.smsConfig.rejectTemplate(templateId, { ...body, reviewerId });
|
||||
}
|
||||
|
||||
@Post('enterprise-applications/:id/status')
|
||||
|
||||
@@ -1622,6 +1622,9 @@ export class SmsConfigService implements OnModuleInit, OnModuleDestroy {
|
||||
targetType,
|
||||
targetId,
|
||||
},
|
||||
include: {
|
||||
reviewer: { select: { id: true, username: true, displayName: true } },
|
||||
},
|
||||
orderBy: { createdAt: 'desc' },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user