From 41600563b0ee8cfad746c359c4d3971169d1c931 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 08 五月 2025 14:00:31 +0800
Subject: [PATCH] 添加移动端操作日志记录

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java
index 0ef3d4a..93a1dd2 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java
@@ -19,6 +19,7 @@
 import com.ruoyi.common.core.web.page.PageInfo;
 import com.ruoyi.common.log.annotation.Log;
 import com.ruoyi.common.log.enums.BusinessType;
+import com.ruoyi.common.log.enums.OperatorType;
 import com.ruoyi.common.redis.service.RedisService;
 import com.ruoyi.common.security.annotation.Logical;
 import com.ruoyi.common.security.annotation.RequiresPermissions;
@@ -139,8 +140,9 @@
         TGoods byId = goodsService.getById(id);
         return AjaxResult.ok(byId);
     }
-
-
+    
+    
+    
     @GetMapping("/getInfoByType")
     @ApiOperation(tags = {"小程序-兑换商城"},value = "商品查看详情")
     public R getInfoByType(Integer goodType,Integer id,Integer type) {
@@ -177,16 +179,15 @@
     public AjaxResult<PageInfo<TGoods>> pageList(@RequestBody GoodsDTO dto) {
         return AjaxResult.ok(goodsService.pageList(dto));
     }
-
-
+    
+    
     @ApiOperation(tags = {"小程序-兑换商城"},value = "商品列表分页查询")
     @PostMapping(value = "/app/pageList")
     public AjaxResult<PageInfo<TGoods>> apppageList(@RequestBody AppGoodQuery appGoodQuery) {
         return AjaxResult.ok(goodsService.pageList1(appGoodQuery));
     }
-
-
-
+    
+    
     @ApiOperation(tags = {"小程序-兑换商城"},value = "积分兑换商品检查数量")
     @PostMapping(value = "/app/shop/check")
     public R check(@RequestBody ExchangeDto exchangeDto) {
@@ -220,7 +221,7 @@
     }
     
     
-    
+    @Log(title = "【我的】积分兑换商品", businessType = BusinessType.INSERT,operatorType = OperatorType.MOBILE)
     @ApiOperation(tags = {"小程序-兑换商城"},value = "积分兑换商品")
     @PostMapping(value = "/app/shop")
     public AjaxResult<PageInfo<TGoods>> shop(@RequestBody ExchangeDto exchangeDto) {
@@ -310,7 +311,8 @@
 
     @Resource
     private AliPaymentClient aliPaymentClient;
-
+    
+    @Log(title = "【我的】支付商品", businessType = BusinessType.UPDATE,operatorType = OperatorType.MOBILE)
     @ApiOperation(tags = {"小程序-现金商城"},value = "支付商品")
     @PostMapping(value = "/app/pay")
     public Object pay(@RequestBody ExchangeDto exchangeDto) {

--
Gitblit v1.7.1