package com.wecloud.im.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wecloud.im.entity.AppUser;
import com.wecloud.im.param.AppUserPageParam;
import com.wecloud.im.vo.AppUserQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * APP用户 Mapper 接口
 *
 * @author wei
 * @since 2020-09-23
 */
@Repository
public interface AppUserMapper extends BaseMapper<AppUser> {

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     */
    AppUserQueryVo getAppUserById(Serializable id);

    /**
     * 获取分页对象
     *
     * @param page
     * @param appUserPageParam
     * @return
     */
    IPage<AppUserQueryVo> getAppUserPageList(@Param("page") Page page, @Param("param") AppUserPageParam appUserPageParam);

}
