Browse Source

新增 角色 菜单 权限及其相关关联表

tags/v2.4.1
xiaoying 1 year ago
parent
commit
484f3bff2a
25 changed files with 767 additions and 0 deletions
  1. +18
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/MenusMapper.java
  2. +18
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/PermissionsMapper.java
  3. +18
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RoleMenuMapper.java
  4. +18
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RolePermissionMapper.java
  5. +18
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RolesMapper.java
  6. +96
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Menus.java
  7. +86
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Permissions.java
  8. +61
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/RoleMenu.java
  9. +61
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/RolePermission.java
  10. +66
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Roles.java
  11. +22
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/MenusServiceImpl.java
  12. +22
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/PermissionsServiceImpl.java
  13. +22
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RoleMenuServiceImpl.java
  14. +22
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RolePermissionServiceImpl.java
  15. +22
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RolesServiceImpl.java
  16. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/MenusService.java
  17. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/PermissionsService.java
  18. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RoleMenuService.java
  19. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RolePermissionService.java
  20. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RolesService.java
  21. +32
    -0
      tuoheng_oidc_admin/src/main/resources/mapper/MenusMapper.xml
  22. +30
    -0
      tuoheng_oidc_admin/src/main/resources/mapper/PermissionsMapper.xml
  23. +23
    -0
      tuoheng_oidc_admin/src/main/resources/mapper/RoleMenuMapper.xml
  24. +23
    -0
      tuoheng_oidc_admin/src/main/resources/mapper/RolePermissionMapper.xml
  25. +24
    -0
      tuoheng_oidc_admin/src/main/resources/mapper/RolesMapper.xml

+ 18
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/MenusMapper.java View File

@@ -0,0 +1,18 @@
package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.Menus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 小影
* @description 针对表【op_menus(菜单表)】的数据库操作Mapper
* @createDate 2023-03-20 14:50:28
* @Entity com.tuoheng.model.entity.Menus
*/
public interface MenusMapper extends BaseMapper<Menus> {

}





+ 18
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/PermissionsMapper.java View File

@@ -0,0 +1,18 @@
package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.Permissions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 小影
* @description 针对表【op_permissions(权限配置表)】的数据库操作Mapper
* @createDate 2023-03-20 14:55:07
* @Entity com.tuoheng.model.entity.Permissions
*/
public interface PermissionsMapper extends BaseMapper<Permissions> {

}





+ 18
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RoleMenuMapper.java View File

@@ -0,0 +1,18 @@
package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 小影
* @description 针对表【op_role_menu(角色可访问菜单表)】的数据库操作Mapper
* @createDate 2023-03-20 14:55:25
* @Entity com.tuoheng.model.entity.RoleMenu
*/
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

}





+ 18
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RolePermissionMapper.java View File

@@ -0,0 +1,18 @@
package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 小影
* @description 针对表【op_role_permission(角色可操作的permission)】的数据库操作Mapper
* @createDate 2023-03-20 14:55:35
* @Entity com.tuoheng.model.entity.RolePermission
*/
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

}





+ 18
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/mapper/op/RolesMapper.java View File

@@ -0,0 +1,18 @@
package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.Roles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 小影
* @description 针对表【op_roles】的数据库操作Mapper
* @createDate 2023-03-20 14:55:52
* @Entity com.tuoheng.model.entity.Roles
*/
public interface RolesMapper extends BaseMapper<Roles> {

}





+ 96
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Menus.java View File

@@ -0,0 +1,96 @@
package com.tuoheng.model.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* 菜单表
* @TableName op_menus
*/
@TableName(value ="op_menus")
@Data
public class Menus implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;

/**
* 创建时间
*/
private Date createTime;

/**
* 修改时间
*/
private Date updateTime;

/**
* 创建人
*/
private Integer createUser;

/**
* 修改人
*/
private Integer updateUser;

/**
* 1初始化 0删除
*/
private Integer mark;

/**
* 父级菜单(0:无父级菜单)
*/
private Integer parentId;

/**
* 菜单名称
*/
private String name;

/**
* 菜单所属client
*/
private String clientId;

/**
* icon图标
*/
private String menuIcon;

/**
* 路由地址
*/
private String path;

/**
* 组件路径
*/
private String component;

/**
* 页面跳转方式
*/
private String target;

/**
* 0:显示;1:隐藏
*/
private Integer isHidden;

/**
* 排序字段
*/
private Integer sort;

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

+ 86
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Permissions.java View File

@@ -0,0 +1,86 @@
package com.tuoheng.model.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* 权限配置表
* @TableName op_permissions
*/
@TableName(value ="op_permissions")
@Data
public class Permissions implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;

/**
* 创建时间
*/
private Date createTime;

/**
* 修改时间
*/
private Date updateTime;

/**
* 创建人
*/
private Integer createUser;

/**
* 修改人
*/
private Integer updateUser;

/**
* 0:初始化;-1:删除
*/
private Integer mark;

/**
* 所属client
*/
private String clientId;

/**
* code标识
*/
private String code;

/**
* 展示name
*/
private String name;

/**
* 备注信息
*/
private String remark;

/**
* 0:菜单项action-permissions;
*/
private Integer type;

/**
* 关联菜单id
*/
private Integer menuId;

/**
* 接口路径
*/
private String apiUrl;

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

+ 61
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/RoleMenu.java View File

@@ -0,0 +1,61 @@
package com.tuoheng.model.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* 角色可访问菜单表
* @TableName op_role_menu
*/
@TableName(value ="op_role_menu")
@Data
public class RoleMenu implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;

/**
* 创建时间
*/
private Date createTime;

/**
* 修改时间
*/
private Date updateTime;

/**
* 创建人
*/
private Integer createUser;

/**
* 修改人
*/
private Integer updateUser;

/**
* 0:初始化;-1:删除
*/
private Integer mark;

/**
* 角色id
*/
private Integer roleId;

/**
* 菜单id
*/
private Integer menuId;

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

+ 61
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/RolePermission.java View File

@@ -0,0 +1,61 @@
package com.tuoheng.model.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* 角色可操作的permission
* @TableName op_role_permission
*/
@TableName(value ="op_role_permission")
@Data
public class RolePermission implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;

/**
* 创建时间
*/
private Date createTime;

/**
* 修改时间
*/
private Date updateTime;

/**
* 创建人
*/
private Integer createUser;

/**
* 修改人
*/
private Integer updateUser;

/**
* 0:初始化;-1:删除
*/
private Integer mark;

/**
* 角色id
*/
private Integer roleId;

/**
*
*/
private Integer permissionId;

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

+ 66
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/entity/Roles.java View File

@@ -0,0 +1,66 @@
package com.tuoheng.model.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
*
* @TableName op_roles
*/
@TableName(value ="op_roles")
@Data
public class Roles implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;

/**
* 创建时间
*/
private Date createTime;

/**
* 修改时间
*/
private Date updateTime;

/**
* 创建人
*/
private Integer createUser;

/**
* 修改人
*/
private Integer updateUser;

/**
* 角色名称
*/
private String roleName;

/**
* 角色备注
*/
private String mark;

/**
* 0:初始化;-1:删除
*/
private Integer status;

/**
* 租户id
*/
private Integer tanentId;

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

+ 22
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/MenusServiceImpl.java View File

@@ -0,0 +1,22 @@
package com.tuoheng.service.op.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.model.entity.Menus;
import com.tuoheng.service.op.MenusService;
import com.tuoheng.mapper.op.MenusMapper;
import org.springframework.stereotype.Service;

/**
* @author 小影
* @description 针对表【op_menus(菜单表)】的数据库操作Service实现
* @createDate 2023-03-20 14:50:28
*/
@Service
public class MenusServiceImpl extends ServiceImpl<MenusMapper, Menus>
implements MenusService{

}





+ 22
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/PermissionsServiceImpl.java View File

@@ -0,0 +1,22 @@
package com.tuoheng.service.op.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.model.entity.Permissions;
import com.tuoheng.service.op.PermissionsService;
import com.tuoheng.mapper.op.PermissionsMapper;
import org.springframework.stereotype.Service;

/**
* @author 小影
* @description 针对表【op_permissions(权限配置表)】的数据库操作Service实现
* @createDate 2023-03-20 14:55:07
*/
@Service
public class PermissionsServiceImpl extends ServiceImpl<PermissionsMapper, Permissions>
implements PermissionsService{

}





+ 22
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RoleMenuServiceImpl.java View File

@@ -0,0 +1,22 @@
package com.tuoheng.service.op.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.model.entity.RoleMenu;
import com.tuoheng.service.op.RoleMenuService;
import com.tuoheng.mapper.op.RoleMenuMapper;
import org.springframework.stereotype.Service;

/**
* @author 小影
* @description 针对表【op_role_menu(角色可访问菜单表)】的数据库操作Service实现
* @createDate 2023-03-20 14:55:25
*/
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu>
implements RoleMenuService{

}





+ 22
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RolePermissionServiceImpl.java View File

@@ -0,0 +1,22 @@
package com.tuoheng.service.op.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.model.entity.RolePermission;
import com.tuoheng.service.op.RolePermissionService;
import com.tuoheng.mapper.op.RolePermissionMapper;
import org.springframework.stereotype.Service;

/**
* @author 小影
* @description 针对表【op_role_permission(角色可操作的permission)】的数据库操作Service实现
* @createDate 2023-03-20 14:55:35
*/
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission>
implements RolePermissionService{

}





+ 22
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/Impl/RolesServiceImpl.java View File

@@ -0,0 +1,22 @@
package com.tuoheng.service.op.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.model.entity.Roles;
import com.tuoheng.service.op.RolesService;
import com.tuoheng.mapper.op.RolesMapper;
import org.springframework.stereotype.Service;

/**
* @author 小影
* @description 针对表【op_roles】的数据库操作Service实现
* @createDate 2023-03-20 14:55:52
*/
@Service
public class RolesServiceImpl extends ServiceImpl<RolesMapper, Roles>
implements RolesService{

}





+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/MenusService.java View File

@@ -0,0 +1,13 @@
package com.tuoheng.service.op;

import com.tuoheng.model.entity.Menus;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 小影
* @description 针对表【op_menus(菜单表)】的数据库操作Service
* @createDate 2023-03-20 14:50:28
*/
public interface MenusService extends IService<Menus> {

}

+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/PermissionsService.java View File

@@ -0,0 +1,13 @@
package com.tuoheng.service.op;

import com.tuoheng.model.entity.Permissions;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 小影
* @description 针对表【op_permissions(权限配置表)】的数据库操作Service
* @createDate 2023-03-20 14:55:07
*/
public interface PermissionsService extends IService<Permissions> {

}

+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RoleMenuService.java View File

@@ -0,0 +1,13 @@
package com.tuoheng.service.op;

import com.tuoheng.model.entity.RoleMenu;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 小影
* @description 针对表【op_role_menu(角色可访问菜单表)】的数据库操作Service
* @createDate 2023-03-20 14:55:25
*/
public interface RoleMenuService extends IService<RoleMenu> {

}

+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RolePermissionService.java View File

@@ -0,0 +1,13 @@
package com.tuoheng.service.op;

import com.tuoheng.model.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 小影
* @description 针对表【op_role_permission(角色可操作的permission)】的数据库操作Service
* @createDate 2023-03-20 14:55:35
*/
public interface RolePermissionService extends IService<RolePermission> {

}

+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/op/RolesService.java View File

@@ -0,0 +1,13 @@
package com.tuoheng.service.op;

import com.tuoheng.model.entity.Roles;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 小影
* @description 针对表【op_roles】的数据库操作Service
* @createDate 2023-03-20 14:55:52
*/
public interface RolesService extends IService<Roles> {

}

+ 32
- 0
tuoheng_oidc_admin/src/main/resources/mapper/MenusMapper.xml View File

@@ -0,0 +1,32 @@
<?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.tuoheng.mapper.op.MenusMapper">

<resultMap id="BaseResultMap" type="com.tuoheng.model.entity.Menus">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="updateUser" column="update_user" jdbcType="INTEGER"/>
<result property="mark" column="mark" jdbcType="TINYINT"/>
<result property="parentId" column="parent_id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="clientId" column="client_id" jdbcType="VARCHAR"/>
<result property="menuIcon" column="menu_icon" jdbcType="VARCHAR"/>
<result property="path" column="path" jdbcType="VARCHAR"/>
<result property="component" column="component" jdbcType="VARCHAR"/>
<result property="target" column="target" jdbcType="VARCHAR"/>
<result property="isHidden" column="is_hidden" jdbcType="INTEGER"/>
<result property="sort" column="sort" jdbcType="INTEGER"/>
</resultMap>

<sql id="Base_Column_List">
id,create_time,update_time,
create_user,update_user,mark,
parent_id,name,client_id,
menu_icon,path,component,
target,is_hidden,sort
</sql>
</mapper>

+ 30
- 0
tuoheng_oidc_admin/src/main/resources/mapper/PermissionsMapper.xml View File

@@ -0,0 +1,30 @@
<?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.tuoheng.mapper.op.PermissionsMapper">

<resultMap id="BaseResultMap" type="com.tuoheng.model.entity.Permissions">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="updateUser" column="update_user" jdbcType="INTEGER"/>
<result property="mark" column="mark" jdbcType="TINYINT"/>
<result property="clientId" column="client_id" jdbcType="VARCHAR"/>
<result property="code" column="code" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="menuId" column="menu_id" jdbcType="INTEGER"/>
<result property="apiUrl" column="api_url" jdbcType="VARCHAR"/>
</resultMap>

<sql id="Base_Column_List">
id,create_time,update_time,
create_user,update_user,mark,
client_id,code,name,
remark,type,menu_id,
api_url
</sql>
</mapper>

+ 23
- 0
tuoheng_oidc_admin/src/main/resources/mapper/RoleMenuMapper.xml View File

@@ -0,0 +1,23 @@
<?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.tuoheng.mapper.op.RoleMenuMapper">

<resultMap id="BaseResultMap" type="com.tuoheng.model.entity.RoleMenu">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="updateUser" column="update_user" jdbcType="INTEGER"/>
<result property="mark" column="mark" jdbcType="TINYINT"/>
<result property="roleId" column="role_id" jdbcType="INTEGER"/>
<result property="menuId" column="menu_id" jdbcType="INTEGER"/>
</resultMap>

<sql id="Base_Column_List">
id,create_time,update_time,
create_user,update_user,mark,
role_id,menu_id
</sql>
</mapper>

+ 23
- 0
tuoheng_oidc_admin/src/main/resources/mapper/RolePermissionMapper.xml View File

@@ -0,0 +1,23 @@
<?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.tuoheng.mapper.op.RolePermissionMapper">

<resultMap id="BaseResultMap" type="com.tuoheng.model.entity.RolePermission">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="updateUser" column="update_user" jdbcType="INTEGER"/>
<result property="mark" column="mark" jdbcType="TINYINT"/>
<result property="roleId" column="role_id" jdbcType="INTEGER"/>
<result property="permissionId" column="permission_id" jdbcType="INTEGER"/>
</resultMap>

<sql id="Base_Column_List">
id,create_time,update_time,
create_user,update_user,mark,
role_id,permission_id
</sql>
</mapper>

+ 24
- 0
tuoheng_oidc_admin/src/main/resources/mapper/RolesMapper.xml View File

@@ -0,0 +1,24 @@
<?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.tuoheng.mapper.op.RolesMapper">

<resultMap id="BaseResultMap" type="com.tuoheng.model.entity.Roles">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="updateUser" column="update_user" jdbcType="INTEGER"/>
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
<result property="mark" column="mark" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="TINYINT"/>
<result property="tanentId" column="tanent_id" jdbcType="INTEGER"/>
</resultMap>

<sql id="Base_Column_List">
id,create_time,update_time,
create_user,update_user,role_name,
mark,status,tanent_id
</sql>
</mapper>

Loading…
Cancel
Save