package com.goldenwater.slaj.hidd.controller;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.goldenwater.common.core.controller.BaseController;
import com.goldenwater.common.core.domain.AjaxResult;
import com.goldenwater.slaj.hidd.service.IObjHiddService;

/**
 * 快速录入树形数据
 */
@RestController
@RequestMapping("/hidd/fast")
public class HiddFastTreeController extends BaseController {
    @Autowired
    private IObjHiddService objHiddService;

    /**
     * 快速录入树形数据
     */
    @GetMapping("/reptree")
    public AjaxResult getFastRepTree(@RequestParam(required = false) String parentGuid) {
        List<Map<String, Object>> tree = objHiddService.selectFastRepTreeData(parentGuid);
        return AjaxResult.success(tree);
    }
}
