package com.kym.mapper;

import com.kym.entity.AdminUser;
import com.kym.entity.queryParams.CommonQueryParam;
import com.kym.entity.vo.AdminUserVo;
import com.kym.mapper.mybatisplus.MyBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author skyline
 * @since 2023-07-11
 */
public interface AdminUserMapper extends MyBaseMapper<AdminUser> {
    List<AdminUserVo> listUserPermissions(@Param("userId") Long loginId);

    List<String> listUserRoles(@Param("userId") Long loginId);

    List<AdminUserVo> listAdminUser(@Param("params") CommonQueryParam params);
}
