Skip to content

Commit

Permalink
cleanup and reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
luketn committed Dec 10, 2024
1 parent 961db29 commit 390c648
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/com/mycodefu/model/ImageSearchResult.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package com.mycodefu.model;

import org.bson.Document;

import java.util.List;

public record ImageSearchResult(List<Image> docs, List<ImageMeta> meta) {
public record ImageMeta (ImageMetaTotal count, ImageMetaFacets facet) { }
public record ImageMetaTotal (long total) { }
public record ImageMetaFacetBucket (String _id, long count) { }
public record ImageMetaFacet (List<ImageMetaFacetBucket> buckets) { }
public record ImageMetaFacets (
ImageMetaFacet accessory,
ImageMetaFacet animal,
Expand All @@ -21,5 +18,6 @@ public record ImageMetaFacets (
ImageMetaFacet sports,
ImageMetaFacet vehicle
) { }
public record ImageMeta (ImageMetaTotal count, ImageMetaFacets facet) { }
public record ImageMetaFacet (List<ImageMetaFacetBucket> buckets) { }
public record ImageMetaFacetBucket (String _id, long count) { }
}

0 comments on commit 390c648

Please sign in to comment.