com.github.javaclub.base.domain.AppUserDO Maven / Gradle / Ivy
/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
*
* @(#)AppUserDO.java 2023-09-04
*
* Copyright (c) 2023. All Rights Reserved.
*
*/
package com.github.javaclub.base.domain;
import com.github.javaclub.sword.core.Strings;
import com.github.javaclub.sword.domain.BaseDO;
/**
* AppUserDO
*
* @version $Id: AppUserDO.java 2023-09-04 21:11:32 Exp $
*/
public class AppUserDO extends BaseDO {
private static final long serialVersionUID = 1597719579931L;
/**
* 主键
*/
private Long id;
/**
* 微信用户openId
*/
private String openId;
/**
* 手机号
*/
private String mobile;
/**
* 分享推荐人ID
*/
private Long referUserId;
private Long extraId;
private String extraName;
/**
* 用户姓名
*/
private String name;
/**
* 微信昵称
*/
private String nickname;
/**
* 用户头像地址
*/
private String userAvatar;
/**
* 性别: 0-未知 1-男 2-女
*/
private Integer gender;
/**
* 状态,1=启用,0=禁用
*/
private Integer status;
/**
* 是否删除,1删除,0未删除
*/
private Integer deleteFlag;
/**
* 注册定位IP
*/
private String locationIp;
public AppUserDO() {
}
public AppUserDO(Long id) {
this.id = id;
}
public AppUserDO(Long id, Integer status) {
this.id = id;
this.status = status;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getOpenId() {
return openId;
}
public void setOpenId(String openId) {
this.openId = openId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUserAvatar() {
return userAvatar;
}
public void setUserAvatar(String userAvatar) {
this.userAvatar = userAvatar;
}
public Integer getGender() {
return gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getDeleteFlag() {
return deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public String getLocationIp() {
return locationIp;
}
public void setLocationIp(String locationIp) {
this.locationIp = locationIp;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public Long getReferUserId() {
return referUserId;
}
public void setReferUserId(Long referUserId) {
this.referUserId = referUserId;
}
public Long getExtraId() {
return extraId;
}
public void setExtraId(Long extraId) {
this.extraId = extraId;
}
public String getExtraName() {
return extraName;
}
public void setExtraName(String extraName) {
this.extraName = extraName;
}
public String presentName() {
return Strings.noneNull(getName(), getNickname(), String.valueOf(getId()));
}
}