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.BaseAddEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
public class SysConfigAddEntity extends BaseAddEntity {

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

    private String value;

    @NotNull(message = Constants.PASSWORD_NOT_NULL_ERROR)
    @NotBlank(message = Constants.PASSWORD_NOT_NULL_ERROR)
    private String pwd;
}
