/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("member")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@TableId(value = "id")
	private Long userId;
	/**
     * 名字
     */
    @NotBlank(message="姓名不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String truename;
    /**
     * 性别 1,男; 2,女
     */
    private Integer sex;
    /**
     * 电话
     */
    @NotBlank(message="电话不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 备注
     */
    private String remark;
    /**
     * 
     */
    private String symbol;
}
