package com.xjs.common.client.api.tianxing;

import com.alibaba.fastjson.JSONObject;
import com.xjs.annotation.ApiLog;
import com.xjs.common.client.factory.TianXingQWRSFeignFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import static com.xjs.consts.ApiConst.*;

/**
 * 天行数据全网热搜feign远程调用api
 * @author xiejs
 * @since 2022-01-10
 */
@FunctionalInterface
@FeignClient(name = "tianXingQWRS",url = TIANXING_TOPSEARCHALLNETWORK_URL,fallbackFactory = TianXingQWRSFeignFactory.class)
public interface TianXingQWRSFeignClient {

    @GetMapping
    @ApiLog(name = TIANXING_TOPSEARCHALLNETWORK,
            url = TIANXING_TOPSEARCHALLNETWORK_URL,
            method = "Get")
    JSONObject topSearchApi(@RequestParam("key") String key);

}
