liujie
2026-09-14 82a8bc62d5b9d5d607f6952329952b17eda2f0a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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; }
}