package com.crm.rely.backend.core.entity.risk.group.type.group;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import com.crm.rely.backend.core.entity.risk.group.type.rule.RiskGroupTypeRuleSaveEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class RiskGroupTypeGroupAddEntity extends BaseAddEntity {
    @NotNull
    @NotBlank
    private String platform;

    @NotNull
    private String groupCode;

    @NotNull
    private List<RiskGroupTypeRuleSaveEntity> rules;

}
