package com.sf.service;


import com.sf.entity.Tea;
import com.sf.mapper.TeaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title TeaService
 * @description
 * @create 2025/11/30
 */
@Service    //一定要添加这个数据，让spring启动的时候扫描到这个类，创建对象作为bean注入到IOC容器
public class TeaService {
    @Autowired
    private TeaMapper teaMapper;


    public List<Tea> queryAll(){
        return teaMapper.selectAll();
    }
}
