package com.wsk.travelf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wsk.travelf.mapper.ProductMapper;
import com.wsk.travelf.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductService {

    @Autowired
    private ProductMapper productMapper;

    //分页查询所有产品信息
    public Page<Product> findAll(int page,int size) {
        return productMapper.findProductPage(new Page<>(page,size));
    }

}
