package com.ichangzuo.system.model.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.Data;

import java.util.Date;

/**
 * 用户持久化对象
 *
 * @author haoxr
 * @since 2022/6/10
 */
@Data
public class UserBO {

    /**
     * 用户ID
     */
    @TableId("user_id")
    private Long id;

    /**
     * 账户名
     */
    @TableField("user_name")
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 手机号
     */
    @TableField("phone")
    private String mobile;

    /**
     * 性别(1->男；2->女)
     */
    @TableField("sex")
    private Integer gender;

    /**
     * 头像URL
     */
    @TableField("portrait")
    private String avatar;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 状态: 1->启用;0->禁用
     */
    @TableField("state")
    private Integer status;

    /**
     * 部门名称
     */
//    private String deptName;

    /**
     * 角色名称，多个使用英文逗号(,)分割
     */
//    private String roleNames;

    /**
     * 创建时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private Date createTime;
    private String name;
    private Integer isName;
    private Integer isPhone;
    private Integer regTime;
    private Integer loginTime;
    private Integer loginNum;
    private Integer deleteTime;
    private Integer vipTime;
    private Integer integral;
    private Integer authority;
}
