Explorar o código

refactor(app): 修改 AppFeedbackController 中分页查询接口为 POST 请求

- 将 findByPage 接口从 GET 请求改为 POST 请求- 添加 @RequestBody 注解以接收请求体中的参数
- 此修改是为了适应前端需求,提高接口的安全性和可扩展性
SheepHy hai 2 semanas
pai
achega
ee4197931c

+ 2 - 2
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/app/controller/my/AppFeedbackController.java

@@ -36,9 +36,9 @@ public class AppFeedbackController {
      * @param appFeedbackFindRequestDTO
      * @return
      */
-    @GetMapping("/findByPage")
+    @PostMapping("/findByPage")
     @Operation(summary = "app意见反馈分页查询")
-    public Result<IPage<FindResponseDTO>> findByList(AppFeedbackFindRequestDTO appFeedbackFindRequestDTO){
+    public Result<IPage<FindResponseDTO>> findByList(@RequestBody AppFeedbackFindRequestDTO appFeedbackFindRequestDTO){
         FindPageRequestDTO findPageRequestDTO = new FindPageRequestDTO();
         findPageRequestDTO.setUserId(appFeedbackFindRequestDTO.getUserId());
         return Result.ok(iAppFeedbackService.findPage(appFeedbackFindRequestDTO.getPageNo(),appFeedbackFindRequestDTO.getPageSize(),findPageRequestDTO));