package com.ylx.massage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ylx.massage.domain.ProductCategory;
import com.ylx.massage.domain.vo.CategoryTreeVO;
import com.ylx.massage.mapper.ProductCategoryMapper;
import com.ylx.massage.service.ProductCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品分类表(ProductCategory)表服务实现类
 *
 * @author ylx
 * @since 2026-03-26
 */
@Service("productCategoryService")
public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryMapper, ProductCategory> implements ProductCategoryService {

    @Resource
    private ProductCategoryMapper productCategoryMapper;

    @Override
    public List<CategoryTreeVO> getCategoryTree() {
        return productCategoryMapper.selectCategoryTree();
    }

}
