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

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

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

@Data
public class SysConfigDeleteEntity extends BaseDelete {
    @NotNull(message = Constants.SELECT_ROW)
    @Min(value = 0, message = Constants.SELECT_ROW)
    @Max(value = Long.MAX_VALUE, message = Constants.PARAMETER_ERROR)
    private Long id;

    @NotNull(message = ManagerConstant.CONFIG_CODE_NOT_NULL)
    @NotBlank(message = ManagerConstant.CONFIG_CODE_NOT_NULL)
    private String code;

}
