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.HelpCenterContentDao;
import tech.glinfo.enbao.modules.sys.entity.HelpCenterContentEntity;
import tech.glinfo.enbao.modules.sys.service.HelpCenterContentService;


@Service("helpCenterContentService")
public class HelpCenterContentServiceImpl extends ServiceImpl<HelpCenterContentDao, HelpCenterContentEntity> implements HelpCenterContentService {

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

        return new PageUtils(page);
    }

}