From c40f67835aba57f9e1829a40bb34debcc16c0848 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Fri, 11 Jul 2025 12:25:07 +0800
Subject: [PATCH] 骑手同步数据添加钱包信息

---
 oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java b/oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java
index f5a31f9..86382c8 100644
--- a/oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java
+++ b/oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java
@@ -4,6 +4,7 @@
 import com.oying.modules.rider.domain.RiderWalletInfo;
 import com.oying.modules.rider.service.RiderWalletInfoService;
 import com.oying.modules.rider.domain.dto.RiderWalletInfoQueryCriteria;
+import com.oying.utils.R;
 import lombok.RequiredArgsConstructor;
 import java.util.List;
 import org.springframework.http.HttpStatus;
@@ -23,7 +24,7 @@
 **/
 @RestController
 @RequiredArgsConstructor
-@Api(tags = "骑手钱包详情")
+@Api(tags = "骑手:骑手钱包详情")
 @RequestMapping("/api/rider/riderWalletInfo")
 public class RiderWalletInfoController {
 
@@ -39,9 +40,9 @@
     @GetMapping
     @ApiOperation("查询骑手钱包详情")
     @PreAuthorize("@el.check('riderWalletInfo:list')")
-    public ResponseEntity<PageResult<RiderWalletInfo>> queryRiderWalletInfo(RiderWalletInfoQueryCriteria criteria){
+    public ResponseEntity<Object> queryRiderWalletInfo(RiderWalletInfoQueryCriteria criteria){
         Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
-        return new ResponseEntity<>(riderWalletInfoService.queryAll(criteria,page),HttpStatus.OK);
+        return new ResponseEntity<>(R.success(riderWalletInfoService.queryAll(criteria,page)),HttpStatus.OK);
     }
 
     @PostMapping
@@ -50,7 +51,7 @@
     @PreAuthorize("@el.check('riderWalletInfo:add')")
     public ResponseEntity<Object> createRiderWalletInfo(@Validated @RequestBody RiderWalletInfo resources){
         riderWalletInfoService.create(resources);
-        return new ResponseEntity<>(HttpStatus.CREATED);
+        return new ResponseEntity<>(R.success(),HttpStatus.CREATED);
     }
 
     @PutMapping
@@ -59,7 +60,7 @@
     @PreAuthorize("@el.check('riderWalletInfo:edit')")
     public ResponseEntity<Object> updateRiderWalletInfo(@Validated @RequestBody RiderWalletInfo resources){
         riderWalletInfoService.update(resources);
-        return new ResponseEntity<>(HttpStatus.NO_CONTENT);
+        return new ResponseEntity<>(R.success(),HttpStatus.NO_CONTENT);
     }
 
     @DeleteMapping
@@ -68,7 +69,7 @@
     @PreAuthorize("@el.check('riderWalletInfo:del')")
     public ResponseEntity<Object> deleteRiderWalletInfo(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) {
         riderWalletInfoService.deleteAll(ids);
-        return new ResponseEntity<>(HttpStatus.OK);
+        return new ResponseEntity<>(R.success(),HttpStatus.OK);
     }
 
 }

--
Gitblit v1.9.3