package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.SecurityUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * app登录对象 yj_app_user
 *
 * @author zcc
 */
@ApiModel(description="会员信息对象")
@Data
@TableName("yj_app_user")
public class AppUser{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("ID")
    @TableId(value = "app_user_id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("名称")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机号")
    private String phoneNumber;

    @ApiModelProperty("帐号启用状态:0->禁用；1->启用")
    private Integer status;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别：0->未知；1->女；2->男")
    private Integer sex;

    @ApiModelProperty("用户所在城市")
    private String city;

    @ApiModelProperty("用户所在省份")
    private String province;

    @ApiModelProperty("用户所在国家")
    private String country;

    @ApiModelProperty("生日")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate birthday;

    @ApiModelProperty("设备id")
    private String registerId;

    @ApiModelProperty("访问/浏览门店id")
    private Long visitStore;
    @ApiModelProperty("小程序unionid")
    private String unionid;

    @ApiModelProperty("小程序openid")
    private String openid;



    /** 最后登录IP */
    private String loginIp;
    //个性签名（140字）
    private String signature;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;

    /**后台账户`sys_user`的user_id*/
    @TableField("manage_account_id")
    private Long manageAccountId;

    @TableField(exist = false)
    private String newPassword;
    //安卓：android；
    //iOS：ios ；
    //鸿蒙：harmonyos ；
    //微信小程序：weixin；
    @TableField("login_sys_platform")
    private String loginSysPlatform;



}
