use of com.actionworks.flashsale.app.model.dto.FlashActivityDTO in project flash-sale by ThoughtsBeta.
the class FlashActivityController method getFlashActivities.
@GetMapping(value = "/flash-activities")
@SentinelResource("GetActivitiesResource")
public MultiResponse<FlashActivityResponse> getFlashActivities(@RequestAttribute Long userId, @RequestParam Integer pageSize, @RequestParam Integer pageNumber, @RequestParam(required = false) String keyword) {
FlashActivitiesQuery flashActivitiesQuery = new FlashActivitiesQuery().setKeyword(keyword).setPageSize(pageSize).setPageNumber(pageNumber);
AppMultiResult<FlashActivityDTO> flashActivitiesResult = flashActivityAppService.getFlashActivities(userId, flashActivitiesQuery);
return ResponseBuilder.withMulti(flashActivitiesResult);
}
Aggregations