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.HelpCenterDao;
import tech.glinfo.enbao.modules.sys.entity.HelpCenterEntity;
import tech.glinfo.enbao.modules.sys.service.HelpCenterService;


@Service("helpCenterService")
public class HelpCenterServiceImpl extends ServiceImpl<HelpCenterDao, HelpCenterEntity> implements HelpCenterService {

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

        return new PageUtils(page);
    }

}