package com.xinyilu.system.domain.dto;

import com.xinyilu.common.custominterface.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Description 小程序端绑定家长信息实体类
 * @Author 纪寒
 * @Date 2022-08-18 14:33:52
 * @Version 1.0
 */
@Data
public class AppletParentDTO implements Serializable {
    private static final long serialVersionUID = 8915715242224933566L;
    /**
     * 学生身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = {Update.class})
    @Size(max = 18, message = "身份证号最大长度位18位")
    private String cardNo;

    /**
     * 家长手机号
     */
    @NotBlank(message = "手机号不能为空", groups = {Update.class})
    @Size(max = 11, message = "手机号最大长度位11位")
    private String phone;

    /**
     * 家长姓名
     */
    @NotBlank(message = "家长姓名不能为空", groups = {Update.class})
    private String parentName;

    /**
     * 微信的openId
     */
    private String openId;
}
