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

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

public record UpdateAlarmClockRequest(
        @NotNull(message = "id不能为空")
        @Min(value = 0, message = "id必须大于0")
        Long acid,
        String label,
        // 重复天 eg: 1000000 周一开启 1111100 工作日开启
        @NotBlank(message = "重复天不能为空")
        @Length(min = 7, max = 7, message = "重复天长度为7")
        String repeats,
        // 闹钟时间 格式: HH:mm
        @NotBlank(message = "闹钟时间不能为空")
        String time,
        Long onceTime,
        Boolean status
) {
}
