|
|
@@ -48,6 +48,7 @@ import platform.modules.home.dto.HomeRefactorDto;
|
|
|
import platform.modules.home.dto.LoginDto;
|
|
|
import platform.modules.home.dto.ThirdLoginDto;
|
|
|
import platform.modules.home.request.FindRequest;
|
|
|
+import platform.modules.home.request.GlobalSearchBean;
|
|
|
import platform.modules.home.response.FindResponseProject;
|
|
|
import platform.modules.home.service.HomeRefactorService;
|
|
|
import platform.modules.sys.entity.*;
|
|
|
@@ -317,11 +318,11 @@ public class HomeRefactorController extends BaseController {
|
|
|
/**
|
|
|
* 新首页查询 通知公告(其实是content内容管理) 和 活动
|
|
|
*/
|
|
|
- @GetMapping("/search/global")
|
|
|
- public Object searchGlobal(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
|
- @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
- @RequestParam(value = "keyword", defaultValue = "") String keyword) {
|
|
|
- return ResponseMessage.success("success", homeRefactorService.searchGlobal(pageNum, pageSize, keyword));
|
|
|
+ @PostMapping("/search/global")
|
|
|
+ public Object searchGlobal(
|
|
|
+ @RequestBody GlobalSearchBean globalSearchBean
|
|
|
+ ) {
|
|
|
+ return ResponseMessage.success("success", homeRefactorService.searchGlobal(globalSearchBean.getPageNum(), globalSearchBean.getPageSize(), globalSearchBean.getKeyword()));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/search/latest")
|