增加用户管理功能

This commit is contained in:
TinyAnts
2022-08-22 17:04:16 +08:00
parent 2350e786c1
commit 992d987c01
6 changed files with 276 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
package com.mdd.common.entity.user;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;
/**
* 用户实体
*/
@Data
public class User implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value="id", type= IdType.AUTO)
private Integer id; // 主键
private String sn; // 编号
private String avatar; // 用户头像
private String realName; // 真实姓名
private String nickname; // 用户昵称
private String username; // 用户账号
private String password; // 用户密码
private String mobile; // 用户电话
private String salt; // 加密盐巴
private Integer sex; // 用户性别: [1=男, 2=女]
private Integer is_delete; // 是否删除: [0=否, 1=是]
private String lastLoginIp; // 最后登录IP
private Long lastLoginTime; // 最后登录时间
private Long createTime; // 创建时间
private Long updateTime; // 更新时间
private Long deleteTime; // 删除时间
}

View File

@@ -0,0 +1,12 @@
package com.mdd.common.mapper.user;
import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.user.User;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户Mapper
*/
@Mapper
public interface UserMapper extends IBaseMapper<User> {
}