package com.ruoyi.xq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.xq.domain.User;
import com.ruoyi.xq.dto.admin.user.UserAdminVo;
import com.ruoyi.xq.dto.app.user.HomePageReq;
import com.ruoyi.xq.dto.app.user.vo.HomeUserListVo;
import com.ruoyi.xq.dto.common.user.MinUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户管理Mapper接口
 *
 * @author 77
 * @date 2024-03-04
 */
public interface UserMapper extends BaseMapper<User> {

    Page<UserAdminVo> pageAdmin(@Param("build") Page<Object> build, @Param("bo") UserAdminVo bo);

    Page<HomeUserListVo> homePageApp(@Param("build") Page<Object> build, @Param("params") HomePageReq params);

    List<HomeUserListVo> vipHomePage(@Param("limit") int limit);

    MinUser getMinUserById(@Param("userId") Long userId);
}
