package tech.glinfo.enbao.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import tech.glinfo.enbao.common.utils.PageUtils;
import tech.glinfo.enbao.common.utils.Query;

import tech.glinfo.enbao.modules.sys.dao.AppApiLogDao;
import tech.glinfo.enbao.modules.sys.entity.AppApiLogEntity;
import tech.glinfo.enbao.modules.sys.service.AppApiLogService;


@Service("appApiLogService")
public class AppApiLogServiceImpl extends ServiceImpl<AppApiLogDao, AppApiLogEntity> implements AppApiLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AppApiLogEntity> page = this.page(
                new Query<AppApiLogEntity>().getPage(params),
                new QueryWrapper<AppApiLogEntity>()
        );

        return new PageUtils(page);
    }

}