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.ImIosApns;
import com.wecloud.im.param.ImIosApnsPageParam;
import com.wecloud.im.param.ImIosApnsQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * apns配置表 Mapper 接口
 *
 * @author wei
 * @since 2021-09-18
 */
@Repository
public interface ImIosApnsMapper extends BaseMapper<ImIosApns> {

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

    /**
     * 获取分页对象
     *
     * @param page
     * @param imIosApnsPageParam
     * @return
     */
    IPage<ImIosApnsQueryVo> getImIosApnsPageList(@Param("page") Page page, @Param("param") ImIosApnsPageParam imIosApnsPageParam);

}
