package com.xinquan.system.api; import com.xinquan.common.core.constant.SecurityConstants; import com.xinquan.common.core.constant.ServiceNameConstants; import com.xinquan.common.core.domain.R; import com.xinquan.system.api.factory.RemoteHotWordsFallbackFactory; import java.util.List; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestHeader; /** * 用户服务 * * @author ruoyi */ @FeignClient(contextId = "remoteHotWordsService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteHotWordsFallbackFactory.class) public interface RemoteHotWordsService { /** * 查询热词列表 * * @param source * @return */ @GetMapping("/inner/system/hot-words/getHotWordList") R> getHotWordList( @RequestHeader(SecurityConstants.FROM_SOURCE) String source); }