package com.huimv.getdata.controller;


import com.huimv.getdata.entity.ErpBdDepartment;
import com.huimv.getdata.entity.ErpBdOrg;
import com.huimv.getdata.service.IErpBdOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-01-03
 */
@RestController
@RequestMapping("/erp-bd-org")
public class ErpBdOrgController {
    @Autowired
    private IErpBdOrgService erpBdService;


    @RequestMapping(value = "/getOrg",method = RequestMethod.GET)
    public List<ErpBdOrg> getOrg(){
        return erpBdService.getOrg();
    }

    @RequestMapping(value = "/getDep",method = RequestMethod.GET)
    public List<ErpBdDepartment> getDep(){
        return erpBdService.getDep();
    }

}
