package com.dd.admin.business.noteImg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.admin.common.model.PageFactory;
import com.dd.admin.business.noteImg.entity.NoteImg;
import com.dd.admin.business.noteImg.mapper.NoteImgMapper;
import com.dd.admin.business.noteImg.service.NoteImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.dd.admin.business.noteImg.domain.NoteImgVo;
import com.dd.admin.business.noteImg.domain.NoteImgDto;
import java.util.List;

/**
 * <p>
 * 笔记包含的图片 服务实现类
 * </p>
 *
 * @author 727869402@qq.com
 * @since 2024-12-23
 */
@Service
public class NoteImgServiceImpl extends ServiceImpl<NoteImgMapper, NoteImg> implements NoteImgService {

    @Override
    public IPage<NoteImgVo> selectNoteImgPage(NoteImgDto noteImgDto) {
        Page page = PageFactory.defaultPage();
        return baseMapper.selectNoteImgPage(page,noteImgDto);
    }

    @Override
    public List<NoteImgVo> selectNoteImgList(NoteImgDto noteImgDto) {
        return baseMapper.selectNoteImgList(noteImgDto);
    }
}
