refactor(inspection): 优化巡检机器人控制器参数配置

- 移除不必要的MediaType导入
- 简化downloadMapFromRobot方法中的参数注解配置
- 保持机器人ID和地图名称参数的API文档注解
- 优化代码结构以提高可读性
This commit is contained in:
lixiaolong 2026-06-12 17:29:47 +08:00
parent 9125dbc2b9
commit 33507dc475

View File

@ -6,7 +6,6 @@ import javax.servlet.http.HttpServletResponse;
import cmvr.api.AgvCommand;
import com.cmvr.inspection.domain.vo.InspectionRobotVo;
import io.swagger.annotations.*;
import org.springframework.http.MediaType;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -154,8 +153,8 @@ public class InspectionRobotController extends BaseController
@Log(title = "从机器人下载地图", businessType = BusinessType.INSERT)
@GetMapping("/{robotId}/download-map")
public AjaxResult downloadMapFromRobot(
@PathVariable(value = "robotId", required = true) @ApiParam("机器人ID") String robotId,
@RequestParam(value = "mapName", required = true) @ApiParam("地图名称") String mapName
@PathVariable(value = "robotId") @ApiParam("机器人ID") String robotId,
@RequestParam(value = "mapName") @ApiParam("地图名称") String mapName
)
{
Object mapId = inspectionRobotService.downloadMapFromRobot(robotId, mapName);