package com.ruoyi.cai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.cai.domain.User;
import com.ruoyi.cai.dto.admin.vo.UserAdminVo;
import com.ruoyi.cai.dto.app.query.index.GreetQuery;
import com.ruoyi.cai.dto.app.query.index.UserQuery;
import com.ruoyi.cai.dto.app.vo.user.UserListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户Mapper接口
 *
 * @author 77
 * @date 2023-12-19
 */
public interface UserMapper extends BaseMapper<User> {

    Page<UserAdminVo> pageAdmin(@Param("build") Page<Object> build, @Param("query") User query);
    Page<UserListVo> pageApp(@Param("build") Page<Object> build, @Param("query") UserQuery query);
    Page<UserListVo> greetPageApp(@Param("build") Page<Object> build, @Param("query") GreetQuery query);

    List<Long> getGreetNumId(@Param("userId") Long userId);
}
