package com.wzj.soopin.content.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzj.soopin.content.domain.bo.ArticleBO;
import com.wzj.soopin.content.domain.po.Article;
import com.wzj.soopin.content.domain.vo.ArticleVO;
import com.wzj.soopin.content.mapper.ArticleMapper;
import com.wzj.soopin.content.service.IArticleService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺封禁
 *
 * @author zcc
 */
@Service
@RequiredArgsConstructor
@Slf4j
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {

    @Override
    public List<ArticleVO> selectVoList(Wrapper<Article> queryWrapper) {
        return baseMapper.selectVoList(queryWrapper);
    }

    @Override
    public Page<ArticleVO> selectVoPage(Page<ArticleVO> page, Wrapper<Article> queryWrapper) {
        return baseMapper.selectVoList(page,queryWrapper);
    }
}
