|  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.common.entity.QueryRequest; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallGoodsCategory; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IAdminMallGoodsCategoryService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IApiMallGoodsCategoryService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.AdminAddAddressTreeVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.AdminMallGoodsCategoryTreeVo; | 
|---|
|  |  |  | import lombok.RequiredArgsConstructor; | 
|---|
|  |  |  | 
|---|
|  |  |  | public class AdminMallGoodsCategoryController extends BaseController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private final IAdminMallGoodsCategoryService goodsCategoryService; | 
|---|
|  |  |  | private final IApiMallGoodsCategoryService mallGoodsCategoryService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 商品分类列表 | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().data(goodsCategoryService.getCategorys(mallGoodsCategory)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping(value = "/categoryTree") | 
|---|
|  |  |  | public FebsResponse categoryTree() { | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsCategoryService.findAllCategoryList()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 商品分类-选择 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 商品分类-全部选择 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("categorys/allTree") | 
|---|
|  |  |  | @ControllerEndpoint(exceptionMessage = "获取分类失败") | 
|---|
|  |  |  | public List<AdminMallGoodsCategoryTreeVo> getAllCategorys(){ | 
|---|
|  |  |  | return goodsCategoryService.getAllCategorys(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 商品分类-新增 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("addCategory") | 
|---|