package com.crm.rely.backend.core.entity.risk.leverage.login;

import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import com.crm.rely.backend.core.entity.risk.leverage.login.rule.RiskLeverageLoginRuleSaveEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class RiskLeverageLoginUpdateEntity extends BaseUpdateEntity {

    @NotNull
    @NotBlank
    private String platform;

    @NotNull
    private Long login;

    @NotNull
    private List<RiskLeverageLoginRuleSaveEntity> rules;
}
