feat: 初始提交

This commit is contained in:
siujamo
2025-12-25 16:08:50 +08:00
commit 8d0b0eb684
153 changed files with 10986 additions and 0 deletions
@@ -0,0 +1,12 @@
<?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.onixbyte.helix.mapper.AuthorityMapper">
<select id="selectByUserId" parameterType="long">
SELECT DISTINCT a.id, a.code, a.name, a.description, a.status, a.created_at, a.updated_at
FROM authorities a
JOIN role_authorities ra ON a.id = ra.authority_id
JOIN user_roles ur ON ra.role_id = ur.role_id
WHERE ur.user_id = #{userId}
</select>
</mapper>