|
@ -65,7 +65,7 @@ public class TopicController { |
|
|
}) |
|
|
}) |
|
|
@RequestMapping(value = "/ranking", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/ranking", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<List<TopicVo.QueryRanking>> queryRanking(@RequestBody @ApiParam @Validated TopicDto.GetRankingByProjectId ranking) throws Exception { |
|
|
public JsonResponse<List<TopicVo.QueryRanking>> queryRanking(@RequestBody @ApiParam @Validated TopicDto.GetRankingByProjectId ranking) throws Exception { |
|
|
log.info("查排名:{}",ranking.toString()); |
|
|
log.info("查排名:{}",ranking); |
|
|
List<TopicVo.QueryRanking> queryRankings = topicService.queryRanking(ranking); |
|
|
List<TopicVo.QueryRanking> queryRankings = topicService.queryRanking(ranking); |
|
|
return JsonResponse.newInstance().ok(queryRankings); |
|
|
return JsonResponse.newInstance().ok(queryRankings); |
|
|
} |
|
|
} |
|
@ -74,8 +74,8 @@ public class TopicController { |
|
|
@ApiImplicitParams({ |
|
|
@ApiImplicitParams({ |
|
|
}) |
|
|
}) |
|
|
@RequestMapping(value = "/promoted", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/promoted", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse promoted(@RequestBody @ApiParam @Validated TopicDto.Promoted promoted) throws Exception { |
|
|
public JsonResponse promoted(@RequestBody @ApiParam @Validated List<TopicDto.Promoted> promoted) throws Exception { |
|
|
log.info("查排名:{}",promoted.toString()); |
|
|
log.info("查排名:{}",promoted); |
|
|
CodeEnum codeEnum = topicService.promoted(promoted); |
|
|
CodeEnum codeEnum = topicService.promoted(promoted); |
|
|
return JsonResponse.newInstance().ok(codeEnum); |
|
|
return JsonResponse.newInstance().ok(codeEnum); |
|
|
} |
|
|
} |
|
|