|
|
@@ -8,13 +8,13 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import es.uv.saic.dto.ArchiveOrganDTO;
|
|
|
import es.uv.saic.dto.CategoriaDTO;
|
|
|
import es.uv.saic.dto.DocumentTmpDTO;
|
|
|
import es.uv.saic.domain.Document;
|
|
|
import es.uv.saic.service.DocumentService;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
@@ -96,4 +96,11 @@ public class DocumentController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/archiveByOrgan")
|
|
|
+ public ResponseEntity<?> archiveByOrgan(@RequestBody ArchiveOrganDTO organ) {
|
|
|
+ ds.archiveByOrgan(organ.getLugar(), organ.getTlugar());
|
|
|
+ return ResponseEntity.ok().build();
|
|
|
+ }
|
|
|
+
|
|
|
}
|