package com.crm.rely.backend.core.entity.mam;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by max on 2020/5/8.
 */
@Data
public class MamApplyAddEntity extends BaseAddEntity {

    /**
     * 交易平台
     */
    private String platform;
    /**
     * 账户类型
     */
    private Long accountType;
    /**
     * 杠杆比例
     */
    private Integer leverage;
    /**
     * 货币类型
     */
    private String currency;

    private Float commission;

    private Long agentId;
    /**
     * 账户类型：
     * 1：MAM账户
     * 2：PAMM账户
     * 3：PAMM Manager，投资经理
     */
    @NotNull(message = "parameter_error")
    @Min(value = 1, message = "parameter_error")
    @Max(value = 3, message = "parameter_error")
    private Integer type;
    /**
     * 所有者账户
     */
    private Long ownerId;
    /**
     * MT4交易账户
     */
    private Long accountId;
    /**
     * 收益分成
     */
    private Float percent;

}
