Commit 587a7226 authored by Quxl's avatar Quxl

优化接口

parent 67c60961
......@@ -40,13 +40,13 @@ public class SolrGoodsController {
@PostMapping("query")
@ApiOperation("搜索引擎商品搜索")
@ApiImplicitParams({
@ApiImplicitParam(dataType="long", allowMultiple=false, name="index", value="分页编号"),
@ApiImplicitParam(dataType="long", allowMultiple=false, name="size", value="分页大小"),
@ApiImplicitParam(dataType="string", allowMultiple=false, name="queryKey", value="搜索关键字"),
@ApiImplicitParam(dataType="string", allowMultiple=true, name="orders", value="排序关键字"),
@ApiImplicitParam(dataType="string", allowMultiple=true, name="keywords", value="精确搜索条件"),
@ApiImplicitParam(dataType="string", allowMultiple=true, name="facetFields", value="单字段分组字段"),
@ApiImplicitParam(dataType="string", allowMultiple=true, name="facetPivotFields", value="多字段分组字段"),
@ApiImplicitParam(paramType = "query", dataType="long", allowMultiple=false, required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType = "query", dataType="long", allowMultiple=false, required=true, name="size", value="分页大小"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=false, required=true, name="queryKey", value="搜索关键字"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=true, required=true, name="orders", value="排序关键字"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=true, required=true, name="keywords", value="精确搜索条件"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=true, required=true, name="facetFields", value="单字段分组字段"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=true, required=true, name="facetPivotFields", value="多字段分组字段"),
})
public Object query(Long index, Long size, String queryKey, String[] orders, String[] keywords, String[] facetFields, String[] facetPivotFields) {
Page page = new Page(index, size, orders);
......@@ -57,7 +57,7 @@ public class SolrGoodsController {
@PostMapping("updateByDistrictID")
@ApiOperation("搜索引擎按区域编号更新商品索引")
@ApiImplicitParams({
@ApiImplicitParam(dataType="string", name="sDistrictID", value="区域编号"),
@ApiImplicitParam(paramType = "query", dataType="string", allowMultiple=false, required=true, name="sDistrictID", value="区域编号"),
})
public Object updateByDistrictID(String sDistrictID) {
service.update(sDistrictID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment