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 javax.validation.constraints.NotNull;
import java.time.LocalDate;

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

    @NotNull(message = "商户ID不能为空")
    @ApiModelProperty("商户ID")
    private Long merchantId;

    @NotNull(message = "项目ID不能为空")
    @ApiModelProperty("项目ID")
    private Long projectId;

    @NotNull(message = "预约日期不能为空")
    @ApiModelProperty(value = "预约日期", example = "2026-06-12")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate appointmentDate;

}
