package com.crm.rely.backend.core.entity.user.info;

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

import javax.validation.constraints.NotNull;

@Data
public class UserReferralAddEntity extends BaseAddEntity {

    /**
     * 推荐人id
     */
    private Long referralUserId;

    /**
     * 推荐码
     */
    private String referralCode;

    @NotNull(message = Constants.NAME_NOT_NULL)
    @NotBlank(message = Constants.NAME_NOT_NULL)
    private String referralName;

    private String callingCode;

    private String phoneNumber;

    private String email;

    private String referralDesc;

    private Integer referralNum;

    private Integer referralSuccessNum;

}
