Przeglądaj źródła

用户角色表

角色信息表
master
Lierbao 1 rok temu
rodzic
commit
08062548b5
13 zmienionych plików z 302 dodań i 1 usunięć
  1. +1
    -1
      ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeConfig.java
  2. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/controller/RoleInfoController.java
  3. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/controller/UserRoleController.java
  4. +84
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/entity/RoleInfo.java
  5. +63
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/entity/UserRole.java
  6. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/RoleInfoMapper.java
  7. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/RoleInfoMapper.xml
  8. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/UserRoleMapper.java
  9. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/UserRoleMapper.xml
  10. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/service/IRoleInfoService.java
  11. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserRoleService.java
  12. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/RoleInfoServiceImpl.java
  13. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserRoleServiceImpl.java

+ 1
- 1
ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeConfig.java Wyświetl plik

@@ -58,7 +58,7 @@ public class GeneratorCodeConfig {
}

public static void main(String[] args) {
generate("Liuxinxin", "user", PATH_LXX, "nd_user_auth", "nd_user_info");
generate("Liuxinxin", "user", PATH_LXX, "nd_role_info", "nd_user_role");
}

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/controller/RoleInfoController.java Wyświetl plik

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.user.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
* <p>
* 角色表 前端控制器
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@Controller
@RequestMapping("/pmapi.user/role-info")
public class RoleInfoController {

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/controller/UserRoleController.java Wyświetl plik

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.user.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
* <p>
* 用户角色表 前端控制器
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@Controller
@RequestMapping("/pmapi.user/user-role")
public class UserRoleController {

}

+ 84
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/entity/RoleInfo.java Wyświetl plik

@@ -0,0 +1,84 @@
package com.ningdatech.pmapi.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
* <p>
* 角色表
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@TableName("nd_role_info")
@ApiModel(value = "RoleInfo对象", description = "角色表")
public class RoleInfo implements Serializable {

private static final long serialVersionUID = 1L;

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

@ApiModelProperty("角色名称")
private String name;

@ApiModelProperty("备注")
private String description;

private LocalDateTime createOn;

private LocalDateTime updateOn;

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getCreateOn() {
return createOn;
}

public void setCreateOn(LocalDateTime createOn) {
this.createOn = createOn;
}
public LocalDateTime getUpdateOn() {
return updateOn;
}

public void setUpdateOn(LocalDateTime updateOn) {
this.updateOn = updateOn;
}

@Override
public String toString() {
return "RoleInfo{" +
"id=" + id +
", name=" + name +
", description=" + description +
", createOn=" + createOn +
", updateOn=" + updateOn +
"}";
}
}

+ 63
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/entity/UserRole.java Wyświetl plik

@@ -0,0 +1,63 @@
package com.ningdatech.pmapi.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
* <p>
* 用户角色表
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@TableName("nd_user_role")
@ApiModel(value = "UserRole对象", description = "用户角色表")
public class UserRole implements Serializable {

private static final long serialVersionUID = 1L;

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

@ApiModelProperty("用户 ID")
private Long userId;

@ApiModelProperty("角色 ID")
private Long roleId;

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}

public void setUserId(Long userId) {
this.userId = userId;
}
public Long getRoleId() {
return roleId;
}

public void setRoleId(Long roleId) {
this.roleId = roleId;
}

@Override
public String toString() {
return "UserRole{" +
"id=" + id +
", userId=" + userId +
", roleId=" + roleId +
"}";
}
}

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/RoleInfoMapper.java Wyświetl plik

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.user.mapper;

import com.ningdatech.pmapi.user.entity.RoleInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* <p>
* 角色表 Mapper 接口
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
public interface RoleInfoMapper extends BaseMapper<RoleInfo> {

}

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/RoleInfoMapper.xml Wyświetl plik

@@ -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="com.ningdatech.pmapi.user.mapper.RoleInfoMapper">

</mapper>

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/UserRoleMapper.java Wyświetl plik

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.user.mapper;

import com.ningdatech.pmapi.user.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* <p>
* 用户角色表 Mapper 接口
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
public interface UserRoleMapper extends BaseMapper<UserRole> {

}

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/mapper/UserRoleMapper.xml Wyświetl plik

@@ -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="com.ningdatech.pmapi.user.mapper.UserRoleMapper">

</mapper>

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/service/IRoleInfoService.java Wyświetl plik

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.user.service;

import com.ningdatech.pmapi.user.entity.RoleInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* <p>
* 角色表 服务类
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
public interface IRoleInfoService extends IService<RoleInfo> {

}

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/service/IUserRoleService.java Wyświetl plik

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.user.service;

import com.ningdatech.pmapi.user.entity.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* <p>
* 用户角色表 服务类
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
public interface IUserRoleService extends IService<UserRole> {

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/RoleInfoServiceImpl.java Wyświetl plik

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.user.service.impl;

import com.ningdatech.pmapi.user.entity.RoleInfo;
import com.ningdatech.pmapi.user.mapper.RoleInfoMapper;
import com.ningdatech.pmapi.user.service.IRoleInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* <p>
* 角色表 服务实现类
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@Service
public class RoleInfoServiceImpl extends ServiceImpl<RoleInfoMapper, RoleInfo> implements IRoleInfoService {

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserRoleServiceImpl.java Wyświetl plik

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.user.service.impl;

import com.ningdatech.pmapi.user.entity.UserRole;
import com.ningdatech.pmapi.user.mapper.UserRoleMapper;
import com.ningdatech.pmapi.user.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* <p>
* 用户角色表 服务实现类
* </p>
*
* @author Liuxinxin
* @since 2023-01-05
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

}

Ładowanie…
Anuluj
Zapisz