package cn.qinys.platform.upms.api.mapper;

import cn.qinys.platform.upms.api.resp.GatewayLogPageResp;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.qinys.platform.entity.upms.GatewayLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * (GatewayLog)表数据库访问层
 *
 * @author makejava
 * @since 2024-04-26 17:20:15
 */
@Repository
@Mapper
public interface GatewayLogMapper extends BaseMapper<GatewayLog> {


    /**
     * 网关日志分页
     *
     * @param page
     * @param wrapper
     * @return
     */
    @Select("SELECT * FROM upms_gateway_log ${ew.customSqlSegment}")
    Page<GatewayLogPageResp> selectLogPage(Page<GatewayLog> page, @Param(Constants.WRAPPER) Wrapper<GatewayLog> wrapper);
}

