ycl-common/src/main/java/com/ycl/mapper/user/UmsRoleMapper.java
New file @@ -0,0 +1,24 @@ package com.ycl.mapper.user; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ycl.entity.user.UmsRole; import org.apache.ibatis.annotations.Param; import java.util.List; /** * <p> * 后台用户角色表 Mapper 接口 * </p> * * @author macro * @since 2020-08-21 */ public interface UmsRoleMapper extends BaseMapper<UmsRole> { /** * 获取用户所有角色 */ List<UmsRole> getRoleList(@Param("adminId") Long adminId); }