This commit is contained in:
zhangzhiqiang
2022-12-14 17:16:17 +08:00
parent 52e919d527
commit 373f983618
6 changed files with 210 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package org.nl.system.controller.user;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 用户表 前端控制器
* </p>
*
* @author generator
* @since 2022-12-14
*/
@RestController
@RequestMapping("/user")
public class UserController {
}

View File

@@ -0,0 +1,16 @@
package org.nl.system.service.user;
import org.nl.system.service.user.dao.User;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 用户表 服务类
* </p>
*
* @author generator
* @since 2022-12-14
*/
public interface UserService extends IService<User> {
}

View File

@@ -0,0 +1,132 @@
package org.nl.system.service.user.dao;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 用户表
* </p>
*
* @author generator
* @since 2022-12-14
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class User implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 用户标识
*/
@TableId(value = "user_id", type = IdType.AUTO)
private Long userId;
/**
* 登录账号
*/
private String username;
/**
* 姓名
*/
private String personName;
/**
* 性别
*/
private String gender;
/**
* 电话
*/
private String phone;
/**
* 电子邮箱
*/
private String email;
/**
* 头像地址
*/
private String avatarName;
/**
* 头像真实路径
*/
private String avatarPath;
/**
* 密码
*/
private String password;
/**
* 是否为admin账号
*/
private String isAdmin;
/**
* 是否启用
*/
private String isUsed;
/**
* 密码重置者
*/
private String pwdResetUserId;
/**
* 密码重置时间
*/
private String pwdResetTime;
/**
* 创建人标识
*/
private Long createId;
/**
* 创建人
*/
private String createName;
/**
* 创建时间
*/
private String createTime;
/**
* 修改人标识
*/
private Long updateOptid;
/**
* 修改人
*/
private String updateOptname;
/**
* 修改时间
*/
private String updateTime;
/**
* 外部人员标识
*/
private String extpersonId;
/**
* 外部用户标识
*/
private String extuserId;
}

View File

@@ -0,0 +1,16 @@
package org.nl.system.service.user.dao.mapper;
import org.nl.system.service.user.dao.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 用户表 Mapper 接口
* </p>
*
* @author generator
* @since 2022-12-14
*/
public interface UserMapper extends BaseMapper<User> {
}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.nl.system.service.user.dao.mapper.UserMapper">
</mapper>

View File

@@ -0,0 +1,20 @@
package org.nl.system.service.user.impl;
import org.nl.system.service.user.dao.User;
import org.nl.system.service.user.dao.mapper.UserMapper;
import org.nl.system.service.user.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 用户表 服务实现类
* </p>
*
* @author generator
* @since 2022-12-14
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
}