package com.microservices.pms.productLibrary.controller;

import com.microservices.common.core.web.controller.BaseController;
import com.microservices.common.core.web.domain.AjaxResult;
import com.microservices.pms.productLibrary.service.IPmsProductLibraryProxyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Api(tags = "制品库相关接口")
@Controller
public class ProductLibraryProxyController extends BaseController {
    @Autowired
    private IPmsProductLibraryProxyService pmsProductLibraryService;


    @ResponseBody
    @RequestMapping(value = "/productLibrary/**")
    @ApiOperation(value = "制品库代理接口")
    public AjaxResult proxyNexusJson(HttpServletRequest request) {
        return pmsProductLibraryService.proxyNexusJson(request);
    }
}
