package com.yc.ship.module.trade.controller.app.otc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.List;

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


@Schema(description = "旅行app的交易订单列表 Request VO")

public class AppTradeOrderReqVO {

    @Data
    public static class TradeOrderQueryReqVO {

        @Schema(description = "预约游玩日期")
        @NotNull(message = "预约游玩日期不能为空")
        @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
        private String travelDate;

        @Schema(description = "游客证件号码")
        @NotNull(message = "游客证件号码不能为空")
        private String credentialNo;

        @Schema(description = "联系人手机号")
        @NotNull(message = "联系人手机号不能为空")
        private String mobile;

        @Schema(description = "订单状态", example = "2")
        private List<Integer> orderStatus;

    }

    @Data
    public static class OtaTradeOrderReqVO {

        @Schema(description = "订单ID")
        private Long id;

        @Schema(description = "接站ID")
        private Long meetId;

        @Schema(description = "送站ID")
        private Long sendId;

    }

}
