package com.diagbot.client;

import com.diagbot.client.bean.Response;
import com.diagbot.client.bean.ResponseData;
import com.diagbot.client.bean.SearchData;
import com.diagbot.client.hystrix.AIServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description: 人工智能服务客服端
 * @author: gaodm
 * @time: 2018/10/25 9:56
 */
@FeignClient(name = "AI", url = "${ai.server.address}", fallback = AIServiceHystrix.class)
public interface AIServiceClient {

    @PostMapping(value = "/web/doc/algorithm/neural")
    Response<ResponseData> bayesPageData(@RequestBody SearchData searchData);
}



