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

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public record CreateFenceRequest(
//        @NotNull(message = "围栏ID不能为空")
//        @Min(value = 1, message = "围栏ID必须大于0")
//        Long fid,
        @NotBlank(message = "小孩ID不能为空")
        String cid,
        @NotBlank(message = "围栏名不能为空")
        String fenceName,
        @NotNull(message = "围栏类型不能为空")
        Integer fenceType,
//        @NotNull(message = "围栏状态不能为空")
//        Integer state,
        @NotBlank(message = "围栏经度不能为空")
        String longitude,
        @NotBlank(message = "围栏纬度不能为空")
        String latitude,
        @NotNull(message = "坐标类型不能为空")
        Integer coordinateType,
        @NotNull(message = "围栏范围不能为空")
        @Min(value = 1, message = "围栏范围必须大于0")
        Integer range,
        @NotBlank(message = "围栏地址不能为空")
        String address
) {
}
