package com.xinelu.applet.vo.nursepersonapplogin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 护理站人员注册信息类
 *
 * @author ljh
 * @version 1.0
 * Create by 2022/10/28 11:26
 */
@Data
public class NurseAppLoginSysUserVO implements Serializable {
    private static final long serialVersionUID = 3253830606920513883L;

    /**
     * 用户账号
     */
    private Long userId;
    /**
     * 用户账号 用户昵称
     */
    private String userName;

    /**
     * 用户姓名
     */
    @NotBlank(message = "用户姓名不能为空！", groups = {Insert.class, Update.class})
    private String nickName;

    /**
     * 手机号码
     */
    @Length(max = 11, message = "手机号码不能超过11位", groups = {Insert.class, Update.class})
    private String phone;

    /**
     * 手机号码
     */
    @Length(max = 11, message = "手机号码不能超过11位", groups = {Insert.class, Update.class})
    @NotBlank(message = "手机号码不能为空！", groups = {Insert.class, Update.class})
    private String phonenumber;
    /**
     * 登录密码
     */
    @Length(min = 6, max = 10, message = "密码不能低于6位并不能超过10位", groups = {Insert.class})
    @NotBlank(message = "密码不能为空！", groups = {Insert.class, Update.class})
    private String stationPersonPassword;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 选择护理站
     */
    @NotBlank(message = "选择护理站不能为空！", groups = {Insert.class, Update.class})
    private String nurseStationIds;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 护理站人员表id
     */
    private Long nurseStationPersonId;
}
