package com.tourguide.modules.operation.dto; import com.tourguide.modules.operation.entity.OperationCity; import java.time.LocalDateTime; /** 运营城市列表返回对象。 */ public class CityResponse { private final Long id; private final String cityName; private final Integer status; private final LocalDateTime createdAt; private CityResponse(OperationCity city) { this.id = city.getId(); this.cityName = city.getCityName(); this.status = city.getStatus(); this.createdAt = city.getCreatedAt(); } public static CityResponse from(OperationCity city) { return new CityResponse(city); } public Long getId() { return id; } public String getCityName() { return cityName; } public Integer getStatus() { return status; } public LocalDateTime getCreatedAt() { return createdAt; } }