feat(backend,frontend): Update application form, add label to switch
This commit is contained in:
@@ -23,11 +23,6 @@ class ApplicationFormController(
|
||||
)
|
||||
}
|
||||
|
||||
override fun deleteApplicationForm(id: UUID): ResponseEntity<Unit> {
|
||||
applicationFormService.deleteApplicationFormByID(id)
|
||||
return ResponseEntity.noContent().build()
|
||||
}
|
||||
|
||||
override fun getAllApplicationForms(): ResponseEntity<PagedApplicationFormDto> {
|
||||
return ResponseEntity.ok(
|
||||
pagedApplicationFormMapper.toPagedApplicationFormDto(
|
||||
@@ -43,4 +38,20 @@ class ApplicationFormController(
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
override fun updateApplicationForm(
|
||||
id: UUID,
|
||||
applicationFormDto: ApplicationFormDto
|
||||
): ResponseEntity<ApplicationFormDto> {
|
||||
return ResponseEntity.ok(
|
||||
applicationFormMapper.toApplicationFormDto(
|
||||
applicationFormService.updateApplicationForm(applicationFormDto)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
override fun deleteApplicationForm(id: UUID): ResponseEntity<Unit> {
|
||||
applicationFormService.deleteApplicationFormByID(id)
|
||||
return ResponseEntity.noContent().build()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user