feat:auth服务 用户鉴权相关

This commit is contained in:
xiang
2026-03-22 00:36:29 +08:00
parent ace15206ec
commit 6ebdec199b
32 changed files with 166 additions and 1084 deletions

View File

@@ -181,11 +181,11 @@
where id = #{id}
</select>
<select id="loadAllPermission" resultType="com.xiang.xservice.auth.api.dto.resp.PermissionRoleDTO">
select p.api_path api_url, p.method, r.code as role_code
from x_permission p
join x_role_permission rp on p.id = rp.permission_id
join x_role r on rp.role_id = r.id
where p.del_flag = 0 and r.del_flag = 0 and r.status = 1
-- select p.api_path api_url, p.method, r.code as role_code
-- from x_permission p
-- join x_role_permission rp on p.id = rp.permission_id
-- join x_role r on rp.role_id = r.id
-- where p.del_flag = 0 and r.del_flag = 0 and r.status = 1
</select>
</mapper>