esoe 1 month ago
parent
commit
c8248efb11
  1. 12
      gates/src/main/java/ru/mlokoin/gates/controller/v1/GatesController.java
  2. 2
      gates/src/main/resources/templates/documents.html

12
gates/src/main/java/ru/mlokoin/gates/controller/v1/GatesController.java

@ -100,12 +100,12 @@ public class GatesController { @@ -100,12 +100,12 @@ public class GatesController {
doc.setExtension( ext.get());
doc = client.post()
.uri("http://resource-service-api:8181/storage-entry/create")
.body(Mono.just(doc), Document.class)
.retrieve()
.bodyToMono(new ParameterizedTypeReference <Document>(){})
.timeout(Duration.ofSeconds(1))
.block();
.uri("http://resource-service-api:8181/storage-entry/create")
.body(Mono.just(doc), Document.class)
.retrieve()
.bodyToMono(new ParameterizedTypeReference <Document>(){})
.timeout(Duration.ofSeconds(1))
.block();
MultipartBodyBuilder builder = new MultipartBodyBuilder();
Boolean ok;

2
gates/src/main/resources/templates/documents.html

@ -31,7 +31,7 @@ xmlns:th="http://www.thymeleaf.org"> @@ -31,7 +31,7 @@ xmlns:th="http://www.thymeleaf.org">
<option value="Списочный состав">Списочный состав</option>
<option value="Заявка на обучение">Заявка на обучение</option>
<option value="Прочее ...">Прочее ...</option>
</select>
</select>
<input type="file" name="file">
<!-- </div> -->

Loading…
Cancel
Save