package com.om.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.om.entity.po.Guide;
import com.om.mapper.GuideMapper;
import com.om.service.IGuideService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author henry-ong
 * @since 2024-02-27
 */
@Service
@Transactional
public class GuideServiceImpl extends ServiceImpl<GuideMapper, Guide> implements IGuideService {
  final GuideMapper guideMapper;

  public GuideServiceImpl(GuideMapper guideMapper) {
    this.guideMapper = guideMapper;
  }

  @Override
  public Page<Guide> findGuide(Page<Guide> page, String title) {
    return guideMapper.findGuide(page, title);
  }
}
