package com.yc.ship.module.product.controller.admin.voyage.vo;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 航次管理分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VoyagePageReqVO extends PageParam {

    @Schema(description = "航次名称", example = "李四")
    private String name;

    @Schema(description = "航次代码")
    private String code;

    @Schema(description = "游轮", example = "6699")
    private Long shipId;

    @Schema(description = "航线", example = "4445")
    private Long routeId;

    @Schema(description = "航线/游轮名称", example = "4445")
    private String searchKey;

    @Schema(description = "登船时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] boardingTime;

    @Schema(description = "开航时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "离船时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] leaveTime;

    @Schema(description = "航次类别", example = "1")
    private Integer type;

    @Schema(description = "是否中转")
    private Integer transfer;

    @Schema(description = "上架状态", example = "1")
    private Integer shelfStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "航次ID列表")
    private List<Long> voyageIds;

    private Integer isLock;
}