package com.tourguide.modules.operation.dto;
|
|
import com.tourguide.modules.operation.entity.ScenicMeetingPoint;
|
import java.math.BigDecimal;
|
|
/** 景区汇合点响应。 */
|
public class ScenicMeetingPointResponse {
|
private Long id;
|
private String pointName;
|
private BigDecimal longitude;
|
private BigDecimal latitude;
|
private Integer status;
|
private Integer isDefault;
|
|
public static ScenicMeetingPointResponse from(ScenicMeetingPoint point) {
|
ScenicMeetingPointResponse response = new ScenicMeetingPointResponse();
|
response.id = point.getId();
|
response.pointName = point.getPointName();
|
response.longitude = point.getLongitude();
|
response.latitude = point.getLatitude();
|
response.status = point.getStatus();
|
response.isDefault = point.getIsDefault();
|
return response;
|
}
|
|
public Long getId() { return id; }
|
public String getPointName() { return pointName; }
|
public BigDecimal getLongitude() { return longitude; }
|
public BigDecimal getLatitude() { return latitude; }
|
public Integer getStatus() { return status; }
|
public Integer getIsDefault() { return isDefault; }
|
}
|