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

import com.baomidou.mybatisplus.annotation.TableField;
import com.yc.ship.module.resource.controller.admin.routetripdetail.vo.ResourceRouteTripDetailRespVO;
import com.yc.ship.module.resource.dal.dataobject.routetripdetail.ResourceRouteTripDetailDO;
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 ResourceRouteTripRespVO {

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

    @Schema(description = "第几天")
    @ExcelProperty("第几天")
    private Integer dayNum;

    @Schema(description = "行程名称", example = "张三")
    @ExcelProperty("行程名称")
    private String name;

    @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;

    /**
     * 行程详细
     */
    @Schema(description = "行程详细")
    private List<ResourceRouteTripDetailRespVO> routeTripDetails;

}