package com.czg.account.dto.calltable;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TakeNumberDTO extends BaseCallTableDTO{
    /**
     * 对应小程序用户id
     */
    private Integer userId;
    /**
     * 手机号
     */
    @NotEmpty
    @Pattern(regexp = "^1\\d{10}$|^(0\\d{2,3}-?|\\(0\\d{2,3}\\))?[1-9]\\d{4,7}(-\\d{1,8})?$",message = "手机号码格式错误")
    private String phone;
    /**
     * 备注
     */
    private String note;
    /**
     * 姓名
     */
    private String name;
    /**
     * openId
     */
    private String openId;
}
