package cn.com.poc.formreport.rest.impl;

import cn.com.poc.formreport.FormReportRequest;
import cn.com.poc.formreport.aggregate.FormReportingService;
import cn.com.poc.formreport.rest.FormReportingRest;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Helen
 * @date 2021/12/20 10:04
 */
@Component
public class FormReportingRestImpl implements FormReportingRest {

    @Resource
    private FormReportingService formReportingService;

    @Override
    public String report(FormReportRequest reportRequest, HttpServletRequest request, HttpServletResponse response) throws Exception {
        return formReportingService.report(reportRequest, request, response);
    }
}
