package com.sikey.wa04.business.infrastructure.dto.request.schooldisable;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public record UpdateSchoolDisableRequest(
        @NotNull(message = "上课禁用ID不能为空")
        @Min(value = 0, message = "上课禁用ID格式不正确")
        Long sdid,
        @NotBlank(message = "小孩ID不能为空")
        String cid,
        @NotBlank(message = "重复天数不能为空")
        @Length(min = 7, max = 7, message = "重复天数格式不正确")
        String repeats,
        String startTime,
        String endTime,
        @NotNull(message = "状态不能为空")
        Boolean status
) {
}
