package com.microservices.pms.productLibrary.service.impl;

import com.microservices.common.core.web.domain.AjaxResult;
import com.microservices.pms.productLibrary.service.IPmsProductLibraryProxyService;
import com.microservices.pms.utils.NexusRequestHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;


/**
 * @author OTTO
 */
@Service
public class PmsProductLibraryProxyProxyServiceImpl implements IPmsProductLibraryProxyService {

    @Autowired
    private NexusRequestHelper nexusRequestHelper;

    @Override
    public AjaxResult proxyNexusJson(HttpServletRequest request) {
        return AjaxResult.success(nexusRequestHelper.doRequest(request));
    }
}
