package cn.axzo.msg.center.service.pending.response.v3.model;

import cn.axzo.msg.center.service.util.MiscUtils2;
import cn.axzo.trade.datasecurity.sd.extension.annotation.SDCellPhoneField;
import lombok.Getter;
import lombok.Setter;

/**
 * @author yanglin
 */
@Setter
@Getter
public class PhoneInfo {

    /**
     * 手机号, 未加密
     */
    @SDCellPhoneField
    private String mobilePhone;

    /**
     * 加密手机号
     */
    private String mobilePhoneCiphertext;

    public String getMaskPhone() {
        return MiscUtils2.maskPhone(mobilePhone);
    }
}
