From 8c5464464036193ddac1de2c5155c94141545c7c Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 21 五月 2026 09:44:24 +0800
Subject: [PATCH] 质量管理增加接口描述

---
 src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
index 5aebb76..644cea9 100644
--- a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
+++ b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
@@ -4,7 +4,7 @@
 import com.ruoyi.framework.aspectj.lang.annotation.Log;
 import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
 import com.ruoyi.framework.web.controller.BaseController;
-import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.framework.web.domain.R;
 import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto;
 import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves;
 import com.ruoyi.warehouse.service.WarehouseGoodsShelvesService;
@@ -25,27 +25,27 @@
     @GetMapping("/listById")
     @Operation(summary = "鍟嗗搧璐ф灦-鏌ヨ")
     @Log(title = "鍟嗗搧璐ф灦-鏌ヨ", businessType = BusinessType.OTHER)
-    public AjaxResult listById(WarehouseGoodsShelves warehouseGoodsShelves) {
+    public R<?> listById(WarehouseGoodsShelves warehouseGoodsShelves) {
         List<WarehouseGoodsShelvesDto> list = warehouseGoodsShelvesService.findList(warehouseGoodsShelves);
-        return AjaxResult.success(list);
+        return R.ok(list);
     }
     @PostMapping("/add")
     @Operation(summary = "鍟嗗搧璐ф灦-娣诲姞")
     @Log(title = "鍟嗗搧璐ф灦-娣诲姞", businessType = BusinessType.INSERT)
-    public AjaxResult add(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
-        return AjaxResult.success(warehouseGoodsShelvesService.add(warehouseGoodsShelves));
+    public R<?> add(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
+        return R.ok(warehouseGoodsShelvesService.add(warehouseGoodsShelves));
     }
     @PutMapping("/update")
     @Operation(summary = "鍟嗗搧璐ф灦-鏇存柊")
     @Log(title = "鍟嗗搧璐ф灦-鏇存柊", businessType = BusinessType.UPDATE)
-    public AjaxResult update(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
-        return AjaxResult.success(warehouseGoodsShelvesService.updateRowcolById(warehouseGoodsShelves));
+    public R<?> update(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
+        return R.ok(warehouseGoodsShelvesService.updateRowcolById(warehouseGoodsShelves));
     }
     @DeleteMapping("/delete")
     @Operation(summary = "鍟嗗搧璐ф灦-鍒犻櫎")
     @Log(title = "鍟嗗搧璐ф灦-鍒犻櫎", businessType = BusinessType.DELETE)
-    public AjaxResult delete(@RequestBody List<Long> ids) {
-        if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
-        return  AjaxResult.success(warehouseGoodsShelvesService.deleteByIds(ids));
+    public R<?> delete(@RequestBody List<Long> ids) {
+        if(CollectionUtils.isEmpty(ids)) return R.fail("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
+        return  R.ok(warehouseGoodsShelvesService.deleteByIds(ids));
     }
 }

--
Gitblit v1.9.3