From 9c183e1a910338b5d8f6a46dbd957c67ad92d5e5 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Wed, 16 Jul 2025 17:45:58 +0800
Subject: [PATCH] 用户订单地址距离校验

---
 oying-system/src/main/java/com/oying/modules/rider/rest/RiderWalletInfoController.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 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 1dab547..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,8 +24,8 @@
 **/
 @RestController
 @RequiredArgsConstructor
-@Api(tags = "骑手钱包详情")
-@RequestMapping("/api/riderWalletInfo")
+@Api(tags = "骑手:骑手钱包详情")
+@RequestMapping("/api/rider/riderWalletInfo")
 public class RiderWalletInfoController {
 
     private final RiderWalletInfoService riderWalletInfoService;
@@ -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