package com.tashow.cloud.product.api;

import com.tashow.cloud.productapi.api.product.dto.CategoryDO;
import com.tashow.cloud.product.service.CategoryService;
import com.tashow.cloud.productapi.api.product.CategoryApi;
import com.tashow.cloud.productapi.api.product.dto.CategoryDto;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class CategoryApiImpl implements CategoryApi {

    @Resource
    private CategoryService categoryService;

    @Override
    public List<CategoryDO> categoryList(Integer grade, Long categoryId,String categoryName, Integer status) {
        return categoryService.categoryList(grade, categoryId,categoryName, status);
    }
}
