package com.ylx.order.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalTime;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("客户端预约校验DTO")
public class BookingCheckDTO extends BookingSlotsDTO{

    @NotNull(message = "预约开始时间不能为空")
    @ApiModelProperty(value = "预约开始时间", example = "14:30")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private LocalTime startTime;

}
