add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.iotechn.unimall.app.api.category;
 
import com.dobbinsoft.fw.core.exception.ServiceException;
import com.iotechn.unimall.biz.service.category.CategoryBizService;
import com.iotechn.unimall.data.dto.CategoryDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * Created by rize on 2019/7/2.
 */
@Service
public class CategoryServiceImpl implements CategoryService {
 
    @Autowired
    private CategoryBizService categoryBizService;
 
    @Override
    public List<CategoryDTO> categoryList() throws ServiceException {
        return categoryBizService.categorySecondLevelTree();
    }
 
    /**
     * @param categoryId
     * @return
     * @throws ServiceException
     */
    @Override
    public List<Long> getCategoryFamily(Long categoryId) throws ServiceException {
        return categoryBizService.getCategoryFamily(categoryId);
    }
}