package com.yc.ship.module.resource.controller.admin.routetripdetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.yc.ship.framework.excel.core.annotations.DictFormat;
import com.yc.ship.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 资源管理-航线行程详细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ResourceRouteTripDetailRespVO {

    @Schema(description = "航线ID", example = "16772")
    @ExcelProperty("航线ID")
    private Long routeId;

    @Schema(description = "行程ID", example = "29273")
    @ExcelProperty("行程ID")
    private Long tripId;

    @Schema(description = "标题", example = "张三")
    private String title;

    @Schema(description = "开始时间")
    @ExcelProperty("开始时间")
    private String startTime;

    @Schema(description = "结束时间")
    @ExcelProperty("结束时间")
    private String endTime;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}