package com.ruoyi.api.service.impl;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.api.constant.yz.ApiEnum;
import com.ruoyi.api.downstream.YzResult;
import com.ruoyi.api.service.ICategoryService;
import com.ruoyi.api.utils.YzResultProcessingUtil;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;

@Service
public class CategoryServiceImpl implements ICategoryService {

    @Override
    public YzResult getCategoryTree() throws JsonProcessingException {
        // 获取商品分类树
        Map<String, Integer> map = new HashMap<>();
        return YzResultProcessingUtil.getYzResult(ApiEnum.GET_CATEGORY_TREE,map);
    }
}
