package com.tourguide.modules.operation.dto;
|
|
import com.tourguide.modules.operation.entity.ScenicPricing;
|
import java.math.BigDecimal;
|
|
/** 单类景区讲解价格配置响应。 */
|
public class ScenicPriceConfigResponse {
|
private Integer durationMinutes;
|
private Integer minParticipants;
|
private Integer maxParticipants;
|
private BigDecimal originalPrice;
|
private BigDecimal discountPrice;
|
|
public static ScenicPriceConfigResponse from(ScenicPricing pricing) {
|
ScenicPriceConfigResponse response = new ScenicPriceConfigResponse();
|
response.durationMinutes = pricing.getDurationMinutes();
|
response.minParticipants = pricing.getMinParticipants();
|
response.maxParticipants = pricing.getMaxParticipants();
|
response.originalPrice = pricing.getOriginalPrice();
|
response.discountPrice = pricing.getDiscountPrice();
|
return response;
|
}
|
|
public Integer getDurationMinutes() { return durationMinutes; }
|
public Integer getMinParticipants() { return minParticipants; }
|
public Integer getMaxParticipants() { return maxParticipants; }
|
public BigDecimal getOriginalPrice() { return originalPrice; }
|
public BigDecimal getDiscountPrice() { return discountPrice; }
|
}
|