Refactor ports to support product details and affinity product IDs retrieval
This commit is contained in:
+6
-1
@@ -1,4 +1,9 @@
|
||||
package com.example.productaffinity.domain.port.outcoming;
|
||||
|
||||
public class AffinityProductsIdsPort {
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface AffinityProductsIdsPort {
|
||||
Mono<Collection<String>> findAffinityProductIds(String productId);
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
package com.example.productaffinity.domain.port.outcoming;
|
||||
|
||||
import com.example.productaffinity.domain.model.Product;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface ProductDetailsPort {
|
||||
Mono<Collection<String>> findAffinityProductIds(String productId);
|
||||
Mono<Product> findProductDetail(String productId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user