package com.crm.rely.backend.core.entity.account.apply;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.constant.RegexpConstants;
import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

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

    private Long customId;

    private Long type;

    private Integer leverage;

    private String currency;

    private String platform;

    @NotBlank(message = Constants.PASSWORD_FORMAT_ERROR)
    @NotNull(message = Constants.PASSWORD_FORMAT_ERROR)
    @Pattern(regexp = RegexpConstants.REGEXP_MANAGER_PWD, message = Constants.PASSWORD_FORMAT_ERROR)
    private String password;

    private Float comPoint;

    private Long cId;

    private Long agentId;

    private String country;

    private String firstName;

    private String lastName;

}
