From 5e671e7b8ee27f043baa6a84fe5893d6c0d686b9 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期四, 16 四月 2026 20:11:21 +0800
Subject: [PATCH] 代码生成

---
 server/web/src/main/java/com/doumee/api/web/WalletApi.java |   87 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 82 insertions(+), 5 deletions(-)

diff --git a/server/web/src/main/java/com/doumee/api/web/WalletApi.java b/server/web/src/main/java/com/doumee/api/web/WalletApi.java
index 72cb49c..ac0cb79 100644
--- a/server/web/src/main/java/com/doumee/api/web/WalletApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/WalletApi.java
@@ -1,6 +1,83 @@
-package com.doumee.api.web;/**
-* Created by IntelliJ IDEA.
-* @Author : Rk
-* @create 2026/4/16 18:05
-*/public class WalletApi {
+package com.doumee.api.web;
+
+import com.doumee.core.annotation.LoginRequired;
+import com.doumee.core.annotation.LoginShopRequired;
+import com.doumee.core.model.ApiResponse;
+import com.doumee.dao.dto.WithdrawalDTO;
+import com.doumee.dao.vo.RevenueStatisticsVO;
+import com.doumee.service.business.RevenueService;
+import com.doumee.service.business.WithdrawalOrdersService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * Created by IntelliJ IDEA.
+ *
+ * @Author : Rk
+ * @create 2026/4/16 18:05
+ */
+@Api(tags = "閽卞寘涓氬姟")
+@RestController
+@RequestMapping("/web/wallet")
+public class WalletApi extends ApiController{
+
+
+
+    @Autowired
+    private WithdrawalOrdersService withdrawalOrdersService;
+
+    @Autowired
+    private RevenueService revenueService;
+
+    @LoginRequired
+    @ApiOperation(value = "鍙告満鎻愮幇鐢宠", notes = "灏忕▼搴忕")
+    @PostMapping("/driverApply")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse driverApply(@RequestBody @Validated WithdrawalDTO dto) {
+        withdrawalOrdersService.applyDriverWithdrawal(dto, getMemberId());
+        return ApiResponse.success("鎻愮幇鐢宠宸叉彁浜�");
+    }
+
+    @LoginShopRequired
+    @ApiOperation(value = "闂ㄥ簵鎻愮幇鐢宠", notes = "灏忕▼搴忕")
+    @PostMapping("/shopApply")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "闂ㄥ簵token鍊�", required = true),
+    })
+    public ApiResponse shopApply(@RequestBody @Validated WithdrawalDTO dto) {
+        withdrawalOrdersService.applyShopWithdrawal(dto, getShopId());
+        return ApiResponse.success("鎻愮幇鐢宠宸叉彁浜�");
+    }
+
+    @LoginShopRequired
+    @ApiOperation(value = "闂ㄥ簵鏀剁泭缁熻", notes = "褰撳墠鐧诲綍闂ㄥ簵鐨勬敹鐩�/鎻愮幇缁熻")
+    @GetMapping("/shopStatistics")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "闂ㄥ簵token鍊�", required = true)
+    })
+    public ApiResponse<RevenueStatisticsVO> shopStatistics() {
+        return ApiResponse.success("鏌ヨ鎴愬姛", revenueService.getShopRevenueStatistics(getShopId()));
+    }
+
+    @LoginRequired
+    @ApiOperation(value = "鍙告満鏀剁泭缁熻", notes = "褰撳墠鐧诲綍鍙告満鐨勬敹鐩�/鎻愮幇缁熻")
+    @GetMapping("/driverStatistics")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+    })
+    public ApiResponse<RevenueStatisticsVO> driverStatistics() {
+        return ApiResponse.success("鏌ヨ鎴愬姛", revenueService.getDriverRevenueStatistics(getMemberId()));
+    }
+
 }

--
Gitblit v1.9.3