package com.zjrs.ggfw.rlzysc.controller;

import org.mohrss.leaf.core.framework.web.controller.AjaxResponse;
import com.zjrs.ggfw.rlzysc.bpo.JbxxglFeignClientBPO;
import com.zjrs.ggfw.rlzysc.dto.AreaDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;

@RestController
@RequestMapping("/api/rlzysc")
public class JbxxglFeignClientController {

    @Resource
    private JbxxglFeignClientBPO jbxxglFeignClientBPO;

    @PostMapping(value = "/jbxxgl/jbxxglcommon/getXzqhTree")
    public AjaxResponse getXzqhTree(@RequestBody AreaDTO dto){
        return jbxxglFeignClientBPO.getXzqhTree(dto);
    }

    @PostMapping(value = "/jbxxgl/jbxxglcommon/getSshyTree")
    public AjaxResponse getSshyTree(@RequestBody AreaDTO dto){
        return jbxxglFeignClientBPO.getSshyTree(dto);
    }
}

