package com.friday.executor.controller;

import com.friday.executor.common.InterProviderHelper;
import com.friday.operation.api.executor.dto.common.InterProviderRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping(value = "/common")
@Slf4j
public class CommonController {
    @Autowired
    private InterProviderHelper providerHelper;


    @RequestMapping(value = "/interProvider", method = RequestMethod.POST)
    public Object queryData(@RequestBody InterProviderRequest request) {
        return providerHelper.queryData(request);
    }
}
