|
|
@@ -46,9 +46,10 @@ public class WishApi {
|
|
|
@RequestMapping(value = "list",method = RequestMethod.POST)
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name="title", value="名称", required=false, paramType="query"),
|
|
|
+ @ApiImplicitParam(name="category", value="类别", required=false, paramType="query"),
|
|
|
})
|
|
|
public MessageResult list(
|
|
|
- String title,
|
|
|
+ String title, String category,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize){
|
|
|
MessageResult msgResult = new MessageResult<>();
|
|
|
@@ -57,6 +58,9 @@ public class WishApi {
|
|
|
if (StringUtils.isNotEmpty(title)) {
|
|
|
searchParams.put("title","%" + title + "%");
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(category)) {
|
|
|
+ searchParams.put("category",category);
|
|
|
+ }
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("create_time","desc"));
|