package com.njcn.harmonic.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.harmonic.api.fallback.PqTypicalSourceFallbackFactory;
import com.njcn.harmonic.pojo.param.UploadParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xuyang
 */
@FeignClient(
        value = ServerInfo.HARMONIC,
        path = "/pqTypicalSourceCreate",
        fallbackFactory = PqTypicalSourceFallbackFactory.class,
        contextId = "pqTypicalSourceCreate")
public interface PqTypicalSourceFeignClient {

    @PostMapping("/send")
    HttpResult<String> send(@RequestBody UploadParam uploadParam);

}
