package io.dataease.ext; import io.dataease.auth.api.dto.CurrentRoleDto; import io.dataease.auth.entity.SysUserEntity; import org.apache.ibatis.annotations.Param; import java.util.List; public interface AuthMapper { List roleCodes(@Param("userId") Long userId); List permissions(@Param("userId") Long userId); List permissionsAll(); List userMenuIds(@Param("userId") Long userId); SysUserEntity findUser(@Param("userId") Long userId); SysUserEntity findUserByName(@Param("username") String username); SysUserEntity findLdapUserByName(@Param("username") String username); SysUserEntity findCasUserByName(@Param("username") String username); SysUserEntity findUserBySub(@Param("sub") String sub, @Param("userFrom") Integer userFrom); List roles(@Param("userId") Long userId); }