无关风月
2024-12-31 0c51a577db337520452022d9d6a22b720ef858d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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<List<String>> getHotWordList(
            @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}