From 4ab710d8d70017f090dd9601099ded1a50a58a10 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 27 四月 2026 22:34:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 server/web/src/main/java/com/doumee/api/web/ConfigApi.java |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
index 42e0df5..3aef431 100644
--- a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
@@ -1,6 +1,8 @@
 package com.doumee.api.web;
 
+import com.doumee.core.annotation.LoginDriverRequired;
 import com.doumee.core.annotation.LoginRequired;
+import com.doumee.core.annotation.LoginShopRequired;
 import com.doumee.core.annotation.trace.Trace;
 import com.doumee.core.constants.Constants;
 import com.doumee.core.model.ApiResponse;
@@ -11,9 +13,11 @@
 import com.doumee.dao.business.model.Banner;
 import com.doumee.dao.business.model.Category;
 import com.doumee.dao.business.model.Notice;
+import com.alibaba.fastjson.JSONObject;
 import com.doumee.dao.dto.AreasDto;
 import com.doumee.dao.dto.CalculateLocalPriceDTO;
 import com.doumee.dao.dto.CalculateRemotePriceDTO;
+import com.doumee.dao.dto.DirectionInfoDTO;
 import com.doumee.dao.dto.SameCityCheckDTO;
 import com.doumee.dao.vo.PriceCalculateVO;
 import com.doumee.dao.vo.ActiveOrderTipVO;
@@ -168,6 +172,33 @@
     }
 
 
+    @LoginShopRequired
+    @ApiOperation(value = "闂ㄥ簵閫氱煡娑堟伅鍒嗛〉", notes = "鏈浼樺厛锛屾椂闂村�掑簭")
+    @PostMapping("/shopNoticePage")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+    })
+    public ApiResponse<PageData<Notice>> shopNoticePage(@RequestBody PageWrap<Notice> pageWrap) {
+        if (pageWrap.getModel() == null) {
+            pageWrap.setModel(new Notice());
+        }
+        pageWrap.getModel().setUserId(this.getShopId());
+        pageWrap.getModel().setUserType(Constants.TWO);
+        return ApiResponse.success("鏌ヨ鎴愬姛", noticeService.findPage(pageWrap));
+    }
+
+    @LoginShopRequired
+    @ApiOperation(value = "闂ㄥ簵鏍囪鍏ㄩ儴宸茶", notes = "鏍囪褰撳墠鐢ㄦ埛鎵�鏈夋湭璇婚�氱煡涓哄凡璇�")
+    @PostMapping("/shopReadAllNotice")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+    })
+    public ApiResponse shopReadAllNotice() {
+        noticeService.readAllNotice(Constants.TWO, this.getShopId());
+        return ApiResponse.success("鎿嶄綔鎴愬姛");
+    }
+
+
     @LoginRequired
     @ApiOperation(value = "棣栭〉杩涜涓鍗曟彁绀�", notes = "杩斿洖鏈�鏂颁竴鏉¤繘琛屼腑璁㈠崟鐨勭姸鎬佸拰鎻愮ず鏂囨锛屾棤璁㈠崟杩斿洖null")
     @GetMapping("/getActiveOrderTip")
@@ -191,4 +222,39 @@
     }
 
 
+
+    @LoginDriverRequired
+    @ApiOperation(value = "鍙告満閫氱煡娑堟伅鍒嗛〉", notes = "鏈浼樺厛锛屾椂闂村�掑簭")
+    @PostMapping("/driverNoticePage")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+    })
+    public ApiResponse<PageData<Notice>> driverNoticePage(@RequestBody PageWrap<Notice> pageWrap) {
+        if (pageWrap.getModel() == null) {
+            pageWrap.setModel(new Notice());
+        }
+        pageWrap.getModel().setUserId(this.getDriverId());
+        pageWrap.getModel().setUserType(Constants.ONE);
+        return ApiResponse.success("鏌ヨ鎴愬姛", noticeService.findPage(pageWrap));
+    }
+
+    @LoginDriverRequired
+    @ApiOperation(value = "璺緞瑙勫垝", notes = "璋冪敤楂樺痉鍦板浘璺緞瑙勫垝鎺ュ彛锛岃繑鍥炶矾绾夸俊鎭�")
+    @PostMapping("/directionInfo")
+    public ApiResponse<JSONObject> directionInfo(@RequestBody @Valid DirectionInfoDTO dto) {
+        return ApiResponse.success("鎿嶄綔鎴愬姛", MapUtil.directionInfo(dto.getMode(), dto.getFrom(), dto.getTo()));
+    }
+
+    @LoginDriverRequired
+    @ApiOperation(value = "鍙告満鏍囪鍏ㄩ儴宸茶", notes = "鏍囪褰撳墠鐢ㄦ埛鎵�鏈夋湭璇婚�氱煡涓哄凡璇�")
+    @PostMapping("/driverReadAllNotice")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+    })
+    public ApiResponse driverReadAllNotice() {
+        noticeService.readAllNotice(Constants.ONE, this.getDriverId());
+        return ApiResponse.success("鎿嶄綔鎴愬姛");
+    }
+
+
 }

--
Gitblit v1.9.3