package com.crm.rely.backend.core.entity.system.area;

import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class SysAreaUpdateEntity extends BaseUpdateEntity {

    @NotNull(message = "Area name empty")
    @NotBlank(message = "Area name empty")
    @Size(min = 1, max = 50, message = "Invalid area name")
    private String areaName;

    @NotNull(message = "Point template empty")
    @Min(value = 1, message = "Invalid point template")
    private Long pointId;

}
