管理员角色控制

This commit is contained in:
none
2023-02-21 16:21:48 +08:00
parent f3e1a6a0de
commit e69798cdcb
15 changed files with 471 additions and 30 deletions

View File

@@ -0,0 +1,19 @@
<?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="xyz.playedu.api.mapper.AdminRoleMapper">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.AdminRole">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="slug" column="slug" jdbcType="VARCHAR"/>
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,name,slug,
created_at,updated_at
</sql>
</mapper>

View File

@@ -0,0 +1,15 @@
<?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="xyz.playedu.api.mapper.AdminRolePermissionMapper">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.AdminRolePermission">
<result property="roleId" column="role_id" jdbcType="INTEGER"/>
<result property="permId" column="perm_id" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
role_id,perm_id
</sql>
</mapper>