From bd19bb31512c2ab232e801d10fab9edacedf26ea Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Mon, 09 Mar 2026 13:55:56 +0800
Subject: [PATCH] 2026-03-09 标记功能接口调整: 优化is_true字段,用于标记是否在地图上可见;只要true/false

---
 ard-admin/src/main/java/com/ard/web/controller/sample/AnnotationController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/AnnotationController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/AnnotationController.java
index 674b7bf..196d6c5 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/AnnotationController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/AnnotationController.java
@@ -67,7 +67,7 @@
     // 新增:修改目录显示状态
     @ApiOperation("修改目录是否可见")
     @PutMapping("/dirvisible/{id}/{isTrue}")
-    public ResponseEntity<Map<String, Object>> updateDirectoryVisible(@PathVariable String id, @PathVariable Integer isTrue) {
+    public ResponseEntity<Map<String, Object>> updateDirectoryVisible(@PathVariable String id, @PathVariable Boolean isTrue) {
         Map<String, Object> result = new HashMap<>();
         try{
             boolean success = directoryService.updateDirectoryVisible(id, isTrue);
@@ -138,7 +138,7 @@
     // 新增:修改标注显示状态
     @ApiOperation("修改标记是否可见")
     @PutMapping("/annvisible/{id}/{isTrue}")
-    public ResponseEntity<Map<String, Object>> updateAnnotationVisible(@PathVariable String id, @PathVariable Integer isTrue) {
+    public ResponseEntity<Map<String, Object>> updateAnnotationVisible(@PathVariable String id, @PathVariable Boolean isTrue) {
         Map<String, Object> result = new HashMap<>();
         try{
             boolean success = annotationService.updateAnnotationVisible(id, isTrue);
@@ -172,7 +172,7 @@
 
     @ApiOperation("批量删除标记")
     @DeleteMapping("/batch")
-    public ResponseEntity<Map<String, Object>> batchDeleteAnnotation(@RequestBody List<Integer> ids) {
+    public ResponseEntity<Map<String, Object>> batchDeleteAnnotation(@RequestBody List<String> ids) {
         Map<String, Object> result = new HashMap<>();
         try {
             boolean success = annotationService.batchDeleteAnnotation(ids);
@@ -189,7 +189,7 @@
     // 层级查询:目录→标记→坐标
     @ApiOperation("按目标id获取所有目录及子标记信息")
     @GetMapping("/directory/{directoryId}")
-    public ResponseEntity<Map<String, Object>> getDirectoryWithAnnotations(@PathVariable Integer directoryId) {
+    public ResponseEntity<Map<String, Object>> getDirectoryWithAnnotations(@PathVariable String directoryId) {
         Map<String, Object> result = new HashMap<>();
         try {
             // 1. 查询目录

--
Gitblit v1.9.3