liujie
2026-09-17 819124be8f16794d409a67f58d5257aef37d9b64
backend/src/main/java/com/tourguide/modules/review/dto/GuideRatingItemResponse.java
@@ -1,10 +1,10 @@
package com.tourguide.modules.review.dto;
import com.tourguide.modules.review.entity.OrderReview;
import com.tourguide.modules.review.util.ReviewImageParser;
import java.math.BigDecimal;
import java.time.format.DateTimeFormatter;
import java.util.Collections;
import java.util.List;
public class GuideRatingItemResponse {
@@ -21,7 +21,7 @@
        this.dateText = review.getReviewedAt() == null ? "" : review.getReviewedAt().format(DATE_FORMATTER);
        this.score = review.getScore();
        this.comment = review.getContent();
        this.images = Collections.emptyList();
        this.images = parseImages(review.getImageUrls());
    }
    public Long getId() { return id; }
@@ -29,4 +29,8 @@
    public BigDecimal getScore() { return score; }
    public String getComment() { return comment; }
    public List<String> getImages() { return images; }
    private static List<String> parseImages(String value) {
        return ReviewImageParser.parse(value);
    }
}