package org.jeecg.modules.dnc.controller;
|
|
import cn.hutool.core.lang.tree.Tree;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
import org.jeecg.modules.dnc.service.IProductMixService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
@Slf4j
|
@Api(tags = "结构树")
|
@RestController
|
@RequestMapping("/nc/product")
|
public class ProductMixController {
|
@Autowired
|
private IProductMixService iProductMixService;
|
|
/**
|
* 获取产品结构树
|
* @return
|
*/
|
@AutoLog(value = "获取产品结构树")
|
@ApiOperation(value = "获取产品结构树", notes = "获取产品结构树")
|
@GetMapping(value = "/getTree")
|
public Result<?> getTree() {
|
return Result.OK(iProductMixService.getTree());
|
}
|
}
|