package com.crm.rely.backend.core.entity.risk.close.trade.group;

import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.exclude.login.RiskCloseTradeExcludeLoginSaveEntity;
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 RiskCloseTradeGroupUpdateEntity extends BaseUpdateEntity {

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

    @NotNull
    private BigDecimal amount;

    private BigDecimal ratio;

    private List<Long> excludeLogins;

    private List<RiskCloseTradeExcludeLoginSaveEntity> excludeLoginSaveEntities;
}
