forked from kidgrow-microservices-platform

er
2020-04-03 907468134f79000ebe9ed16c5dfc536718ddf1db
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
package com.kidgrow.searchcenter.client.feign;
 
import com.alibaba.fastjson.JSONObject;
import com.kidgrow.common.constant.ServiceNameConstants;
import com.kidgrow.common.model.PageResult;
import com.kidgrow.searchcenter.client.feign.fallback.SearchServiceFallbackFactory;
import com.kidgrow.searchcenter.model.SearchDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 *
 * @Description: 搜索客户端FeignClient接口<br>
 * @Project: <br>
 * @CreateDate: Created in 2020/2/24 12:13 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 */
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, decode404 = true)
public interface SearchService {
    /**
     * 查询文档列表
     * @param indexName 索引名
     * @param searchDto 搜索Dto
     */
    @PostMapping(value = "/search/{indexName}")
    PageResult<JSONObject> strQuery(@PathVariable("indexName") String indexName, @RequestBody SearchDto searchDto);
}