Add mapstruct
This commit is contained in:
19
pom.xml
19
pom.xml
@@ -18,6 +18,8 @@
|
|||||||
<quarkus.platform.version>3.31.1</quarkus.platform.version>
|
<quarkus.platform.version>3.31.1</quarkus.platform.version>
|
||||||
<kodik-service.version>0.0.1-SNAPSHOT</kodik-service.version>
|
<kodik-service.version>0.0.1-SNAPSHOT</kodik-service.version>
|
||||||
<shikimori-service.version>0.0.1-SNAPSHOT</shikimori-service.version>
|
<shikimori-service.version>0.0.1-SNAPSHOT</shikimori-service.version>
|
||||||
|
<quarkus-mapstruct.version>1.1.0</quarkus-mapstruct.version>
|
||||||
|
<mapstruct.version>1.6.3</mapstruct.version>
|
||||||
<skipITs>true</skipITs>
|
<skipITs>true</skipITs>
|
||||||
<surefire-plugin.version>3.5.4</surefire-plugin.version>
|
<surefire-plugin.version>3.5.4</surefire-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
@@ -65,6 +67,16 @@
|
|||||||
<artifactId>anyame-shikimori-metadata-backend</artifactId>
|
<artifactId>anyame-shikimori-metadata-backend</artifactId>
|
||||||
<version>${shikimori-service.version}</version>
|
<version>${shikimori-service.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.quarkiverse.mapstruct</groupId>
|
||||||
|
<artifactId>quarkus-mapstruct</artifactId>
|
||||||
|
<version>${quarkus-mapstruct.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct</artifactId>
|
||||||
|
<version>${mapstruct.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.quarkus</groupId>
|
<groupId>io.quarkus</groupId>
|
||||||
<artifactId>quarkus-junit</artifactId>
|
<artifactId>quarkus-junit</artifactId>
|
||||||
@@ -90,6 +102,13 @@
|
|||||||
<version>${compiler-plugin.version}</version>
|
<version>${compiler-plugin.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<parameters>true</parameters>
|
<parameters>true</parameters>
|
||||||
|
<annotationProcessorPaths>
|
||||||
|
<path>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct-processor</artifactId>
|
||||||
|
<version>${mapstruct.version}</version>
|
||||||
|
</path>
|
||||||
|
</annotationProcessorPaths>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.backend.unifier.title.service.model;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public record SearchResponseDTO(List<SearchEntryDTO> result) {
|
||||||
|
public record SearchEntryDTO(String title, int episodeCount) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user