| | |
| | | import cc.mrbird.febs.common.controller.BaseController; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.mall.vo.AdminMallGoodsCategoryTreeVo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | |
| | | return new FebsResponse().success().data(service.categoryTree()); |
| | | } |
| | | |
| | | @GetMapping("categoryTree/parent") |
| | | @ControllerEndpoint(exceptionMessage = "获取分类失败") |
| | | public List<AiProductCategory> parent(){ |
| | | |
| | | return service.parent(); |
| | | } |
| | | } |