package com.ylx.order.domain.vo;

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

import java.time.LocalTime;

@ApiModel("客户端预约时间段VO")
@Data
public class BookingSlotsVO {

    @ApiModelProperty(value = "开始时间(HH:mm)")
    @JsonFormat(pattern = "HH:mm")
    private LocalTime startTime;

    @ApiModelProperty("标时")
    private Integer standardDuration;

    @ApiModelProperty("计量单位")
    private String unitTypeName;

    @ApiModelProperty(value = "结束时间（HH:mm）")
    @JsonFormat(pattern = "HH:mm")
    private LocalTime endTime;

    @ApiModelProperty(value = "是否为白天: true-白天, false-晚上")
    private Boolean isDay;

    @ApiModelProperty(value = "是否可预约: true-可约, false-不可约")
    private Boolean available;

}
