From 11c5ab8d97809bdeddb60b22a4fe161a67aa3b05 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 19 一月 2026 16:03:17 +0800
Subject: [PATCH] 小程序   接口开发

---
 server/dmmall_web/src/main/java/com/doumee/api/web/ShopApi.java |   63 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/server/dmmall_web/src/main/java/com/doumee/api/web/ShopApi.java b/server/dmmall_web/src/main/java/com/doumee/api/web/ShopApi.java
index 3e1fc59..a4c3ce0 100644
--- a/server/dmmall_web/src/main/java/com/doumee/api/web/ShopApi.java
+++ b/server/dmmall_web/src/main/java/com/doumee/api/web/ShopApi.java
@@ -8,8 +8,15 @@
 import com.doumee.core.model.PageWrap;
 import com.doumee.dao.business.model.Shop;
 import com.doumee.dao.business.model.WithdrawRecord;
+import com.doumee.dao.web.dto.ShopLoginDTO;
 import com.doumee.dao.web.dto.shop.*;
+import com.doumee.dao.web.request.MyCustomerRequest;
+import com.doumee.dao.web.request.SaleReportRequest;
 import com.doumee.dao.web.request.WithdrawApplyRequest;
+import com.doumee.dao.web.response.AccountResponse;
+import com.doumee.dao.web.response.MyCustomerResponse;
+import com.doumee.dao.web.response.SaleReportResponse;
+import com.doumee.dao.web.response.ShopInfoResponse;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
@@ -94,7 +101,7 @@
 
 
     @LoginShopRequired
-    @ApiOperation(value = "鎻愮幇鐢宠 - 缁忛攢鍟�", notes = "灏忕▼搴忕")
+    @ApiOperation(value = "缁忛攢鍟� - 鎻愮幇鐢宠", notes = "灏忕▼搴忕")
     @PostMapping("/withdrawApply")
     @ApiImplicitParams({
             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
@@ -108,7 +115,7 @@
 
 
     @LoginShopRequired
-    @ApiOperation("鏌ヨ鎻愮幇鐢宠璇︽儏")
+    @ApiOperation("缁忛攢鍟� - 鏌ヨ鎻愮幇鐢宠璇︽儏")
     @GetMapping("/withdrawDetail")
     @ApiImplicitParams({
             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
@@ -118,6 +125,58 @@
     }
 
 
+    @ApiOperation("缁忛攢鍟� - 璐﹀彿瀵嗙爜鐧诲綍")
+    @PostMapping("/shopPasswordLogin")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse<AccountResponse> shopPasswordLogin(@RequestBody ShopLoginDTO dto) {
+        return ApiResponse.success(shopService.shopPasswordLogin(dto));
+    }
+
+    @ApiOperation("缁忛攢鍟� - 闈欓粯鐧诲綍")
+    @PostMapping("/shopOpenidLogin")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse<AccountResponse> shopOpenidLogin(@RequestBody ShopLoginDTO dto) {
+        return ApiResponse.success(shopService.shopOpenidLogin(dto));
+    }
+
+    @LoginShopRequired
+    @ApiOperation("缁忛攢鍟� - 搴楅摵璇︽儏")
+    @GetMapping("/getShopInfo")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse<ShopInfoResponse> getShopInfo() {
+        return ApiResponse.success(shopService.getShopInfo(getShopId()));
+    }
+
+
+    @LoginShopRequired
+    @ApiOperation("缁忛攢鍟� - 鎴戠殑瀹㈡埛淇℃伅")
+    @GetMapping("/myCustomer")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse<List<MyCustomerResponse>> myCustomer(MyCustomerRequest request) {
+        return ApiResponse.success(shopService.myCustomer(request,getShopId()));
+    }
+
+    @LoginShopRequired
+    @ApiOperation("缁忛攢鍟� - 閿�鍞槑缁�")
+    @GetMapping("/saleReport")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+    })
+    public ApiResponse<SaleReportResponse> saleReport(SaleReportRequest request) {
+        return ApiResponse.success(shopService.saleReport(request,getShopId()));
+    }
+
+
+
+
 
 
 }

--
Gitblit v1.9.3