package com.crm.rely.backend.core.entity.risk.revoke.credit.rule.group;

import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.exclude.login.RiskRevokeCreditRuleExcludeLoginSaveEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class RiskRevokeCreditRuleGroupUpdateEntity extends BaseUpdateEntity {

    @NotNull
    @NotBlank
    private String platform;
    @NotNull
    @NotBlank
    private String groupCode;
    @NotNull
    private BigDecimal ratio;

    private List<Long> excludeLogins;

    private List<RiskRevokeCreditRuleExcludeLoginSaveEntity> excludeLoginSaveEntities;
}
