File tree 2 files changed +5
-5
lines changed
src/main/java/it/gov/pagopa/message/core/controller
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ public interface CitizenController {
15
15
/**
16
16
* Send message
17
17
*MessageDispatcherUtils
18
- * @param citizenConsentDTO to update
18
+ * @param userId to update
19
+ * @param channelId to update
19
20
* @return outcome of the removal
20
21
*/
21
22
@ DeleteMapping ("/citizenConsents" )
22
- ResponseEntity <CitizenConsentDTO > deleteCitizenConsents (@ Valid @ RequestBody CitizenConsentDTO citizenConsentDTO );
23
-
23
+ ResponseEntity <CitizenConsentDTO > deleteCitizenConsents (@ RequestParam String userId , @ RequestParam String channelId );
24
24
/**
25
25
* Send message
26
26
*
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ public CitizenControllerImpl(CitizenServiceImpl citizenService) {
19
19
20
20
21
21
@ Override
22
- public ResponseEntity <CitizenConsentDTO > deleteCitizenConsents (CitizenConsentDTO citizenConsentDTO ) {
23
- citizenConsentDTO = citizenService .deleteCitizenConsent (citizenConsentDTO . getHashedFiscalCode (), citizenConsentDTO . getChannelId () );
22
+ public ResponseEntity <CitizenConsentDTO > deleteCitizenConsents (String userId , String channelId ) {
23
+ CitizenConsentDTO citizenConsentDTO = citizenService .deleteCitizenConsent (userId , channelId );
24
24
return new ResponseEntity <>(citizenConsentDTO , HttpStatus .OK );
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments