@FeignClient(value="iisme-demos-nacos-core",
fallback=ProductCategoryFallBack.class)
public interface ProductCategoryService
| 限定符和类型 | 方法和说明 |
|---|---|
Response<ProductCategoryResp> |
findById(Long id)
根据ID查找商品分类
|
List<ProductCategoryResp> |
findChildren(Long parentId)
查找下级商品分类
|
List<ProductCategoryResp> |
findList(ProductCategoryReq req)
查找商品分类
|
Response<List<ProductCategoryResp>> |
findRoots()
查找顶级商品分类
|
@GetMapping(value="/category/{id}")
Response<ProductCategoryResp> findById(@PathVariable(value="id")
Long id)
id - ID@GetMapping(value="/findRoots") Response<List<ProductCategoryResp>> findRoots()
@PostMapping(value="/findList") List<ProductCategoryResp> findList(@RequestBody ProductCategoryReq req)
@GetMapping(value="/findChildren/{parentId}")
List<ProductCategoryResp> findChildren(@PathVariable(value="parentId")
Long parentId)
parentId - 上级商品分类IDCopyright © 2020. All rights reserved.