|
@@ -28,10 +28,8 @@ public class TechnicalArticlesController {
|
|
@Autowired
|
|
@Autowired
|
|
private TechnicalArticlesService technical;
|
|
private TechnicalArticlesService technical;
|
|
|
|
|
|
- @RequestMapping(value = "/articles", method = RequestMethod.GET)
|
|
|
|
- public ResponseVO<TechnicalArticlesDTO> technicalarticles(@RequestParam(name = "searchCondition") String searchCondition){
|
|
|
|
- Gson gson = new Gson();
|
|
|
|
- SearchConditionVO searchConditionVO = gson.fromJson(searchCondition, SearchConditionVO.class);
|
|
|
|
|
|
+ @RequestMapping(value = "/articles", method = RequestMethod.POST)
|
|
|
|
+ public ResponseVO<TechnicalArticlesDTO> technicalarticles(@RequestBody SearchConditionVO searchConditionVO){
|
|
Pageable pageable = this.getPageable(searchConditionVO);
|
|
Pageable pageable = this.getPageable(searchConditionVO);
|
|
String keyword = searchConditionVO.getKeyword();
|
|
String keyword = searchConditionVO.getKeyword();
|
|
return new ResponseVO<>(ServerCode.SUCCESS, technical.getArticles(pageable, keyword));
|
|
return new ResponseVO<>(ServerCode.SUCCESS, technical.getArticles(pageable, keyword));
|