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

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

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

@Data
public class CustomUpdatePasswordSendPhoneEntity {

    /**
     * 区号比如说86
     */
    @NotNull
    @NotBlank
    private String areaCode;

    /**
     * 手机号码
     */
    @NotNull(message = Constants.PHONE_NOT_NULL_ERROR)
    @NotBlank(message = Constants.PHONE_NOT_NULL_ERROR)
    private String phone;

    private String ip;

    private Date time;
}
