package com.huigou.topsun.product.application.impl;

import com.huigou.topsun.product.application.ProductCategoryApplication;
import com.huigou.topsun.product.domain.ProductCategory;
import com.huigou.topsun.product.repository.ProductCategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 16508
* @description 针对表【product_category(产品类别)】的数据库操作Service实现
* @createDate 2023-11-22 10:24:31
*/
@Service
public class ProductCategoryApplicationImpl implements ProductCategoryApplication {

    @Autowired
    ProductCategoryRepository productCategoryRepository;

    @Override
    public ProductCategory getProductCategoryById(String id) {
        return productCategoryRepository.findOne(id);
    }
}




