chore: swagger接口文档名称调整

This commit is contained in:
stream 2025-08-26 16:54:43 +08:00
parent faf85b3634
commit 8e1b75b7f9
24 changed files with 46 additions and 67 deletions

View File

@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "设备信息获取")
@Api(tags = "边缘--设备信息获取")
@RestController
@RequestMapping("/api/deviceList")
@RequiredArgsConstructor

View File

@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "机器人头部")
@Api(tags = "边缘--机器人头部")
@RestController
@RequestMapping("/api/biohead")
@RequiredArgsConstructor

View File

@ -12,11 +12,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "测试相机服务")
@Api(tags = "边缘--相机")
@RestController
@RequestMapping("/api/edge/camera")
@RequiredArgsConstructor
public class TestGrpcController extends BaseController {
public class EdgeCameraController extends BaseController {
private final EdgeCameraService edgeCameraService;

View File

@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "API操作")
@Api(tags = "边缘--API操作")
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor

View File

@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Api(tags = "机器人灵巧手")
@Api(tags = "边缘--机器人灵巧手")
@RestController
@RequestMapping("/api/dexHand")
@RequiredArgsConstructor

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "机械臂")
@Api(tags = "边缘--机械臂")
@RestController
@RequestMapping("/api/humanoid")
@RequiredArgsConstructor

View File

@ -16,11 +16,11 @@ import java.util.Map;
/**
* 麦克风管理
*/
@Api(tags = "麦克风")
@Api(tags = "边缘--麦克风")
@RestController
@RequestMapping("/api/Microphone")
@RequiredArgsConstructor
public class MicrophoneController {
public class EdgeMicrophoneController {
private final EdgeMicrophoneService microphoneService;

View File

@ -3,7 +3,6 @@ package com.cmvr.web.controller.api;
import cmvr.api.SpeakerCommand;
import com.cmvr.edge.client.service.EdgeSpeakerService;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@ -19,11 +18,11 @@ import java.util.Map;
*
* @author cmvr
*/
@Api(tags = "扬声器")
@Api(tags = "边缘--扬声器")
@RestController
@RequestMapping("/api/Speaker")
@RequiredArgsConstructor
public class SpeakerController {
public class EdgeSpeakerController {
private final EdgeSpeakerService speakerService;

View File

@ -1,23 +1,42 @@
package com.cmvr.web.controller.api;
import com.cmvr.common.core.controller.BaseController;
import com.cmvr.llm.model.CallAgentVO;
import com.cmvr.llm.service.LargeModelRemoteService;
import com.cmvr.llm.util.LargeModelFileUploadUtil;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.system.domain.vo.CarIcon;
import com.cmvr.system.service.CarPathFinderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.stream.Collectors;
@Api(tags = "大模型接口调用")
@Api(tags = "大模型服务")
@RestController
@RequestMapping("/api/call")
@RequiredArgsConstructor
public class LargeModelRemoteController {
public class LargeModelRemoteController extends BaseController {
private final LargeModelRemoteService largeModelRemoteService;
private final CarPathFinderService carPathFinderService;
@ApiOperation("查找操作路径")
@GetMapping("/path")
public AjaxResult path(
@RequestParam("manufacturer") String manufacturer,
@RequestParam("vehType") String vehType,
@RequestParam("startUi") String startUi,
@RequestParam("targetFeature") String targetFeature
) {
List<CarIcon> path = carPathFinderService.findPath(manufacturer, vehType, startUi, targetFeature);
return AjaxResult.ok(path.stream().map(CarIcon::getIconName).collect(Collectors.joining(" -> ")));
}
@ApiOperation("执行语音转文本工作流")
@PostMapping("/speechToText")

View File

@ -27,7 +27,7 @@ import com.cmvr.common.core.page.TableDataInfo;
@RestController
@RequestMapping("/device/profile")
@RequiredArgsConstructor
@Api(tags = "设备配置信息")
@Api(tags = "设备--配置信息")
public class DeDeviceProfileController extends BaseController
{

View File

@ -35,7 +35,7 @@ import com.cmvr.common.core.page.TableDataInfo;
@RestController
@RequestMapping("/device/register")
@RequiredArgsConstructor
@Api(tags = "设备注册")
@Api(tags = "设备--注册")
public class DeDeviceRegistrationController extends BaseController
{
@Autowired

View File

@ -27,7 +27,7 @@ import java.util.List;
@RestController
@RequestMapping("/device/terminal")
@RequiredArgsConstructor
@Api(tags = "设备终端配置")
@Api(tags = "设备--终端配置")
public class DeDeviceTerminalConfigController extends BaseController {
@Autowired
private IDeDeviceTerminalConfigService deDeviceTerminalConfigService;

View File

@ -26,7 +26,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid;
import java.io.IOException;
@Api(tags = "演示-智能座舱")
@Api(tags = "演示--智能座舱")
@RestController
@RequestMapping("/show")
@RequiredArgsConstructor

View File

@ -15,7 +15,7 @@ import org.springframework.web.multipart.MultipartFile;
import java.util.List;
@Api(tags = "文件管理")
@Api(tags = "通用--文件管理")
@RestController
@RequestMapping("/system/file")
@RequiredArgsConstructor

View File

@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(tags = "通用分组配置")
@Api(tags = "通用--分组配置")
@RestController
@RequestMapping("/system/group")
@RequiredArgsConstructor

View File

@ -27,7 +27,7 @@ import com.cmvr.system.service.ISysMenuService;
*
* @author cmvr-iot
*/
@Api(tags = "登录验证")
@Api(tags = "通用--登录验证")
@RestController
public class SysLoginController
{

View File

@ -52,7 +52,6 @@ public class SysVehOperConfigController extends BaseController {
return success(sysVehOperConfigService.selectSysVehOperConfigById(configId));
}
@ApiOperation("新增参数配置")
@PreAuthorize("@ss.hasPermi('system:vehOper:add')")
@Log(title = "参数管理", businessType = BusinessType.INSERT)

View File

@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@Api(tags = "检测项配置")
@Api(tags = "测试--检测项配置")
@RestController
@RequestMapping("/test/detect")
@RequiredArgsConstructor

View File

@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
@Api(tags = "流程相关接口服务")
@Api(tags = "测试--流程服务")
@RestController
@RequestMapping("/flow")
@RequiredArgsConstructor

View File

@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(tags = "任务配置信息")
@Api(tags = "测试--任务配置")
@RestController
@RequestMapping("/test/config")
@RequiredArgsConstructor

View File

@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "任务实例")
@Api(tags = "测试--任务实例")
@RestController
@RequestMapping("/test/inst")
@RequiredArgsConstructor

View File

@ -18,7 +18,7 @@ import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Api(tags = "任务编排")
@Api(tags = "测试--任务编排")
@RestController
@RequestMapping("/test/orchestration")
@RequiredArgsConstructor

View File

@ -1,38 +0,0 @@
package com.cmvr.web.controller.test;
import com.cmvr.common.core.controller.BaseController;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.system.domain.vo.CarIcon;
import com.cmvr.system.service.CarPathFinderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.stream.Collectors;
@Api(tags = "测试接口")
@RestController
@RequestMapping("/test/test")
@RequiredArgsConstructor
public class TeTestController extends BaseController {
private final CarPathFinderService carPathFinderService;
@ApiOperation("查找操作路径")
@GetMapping("/path")
public AjaxResult path(
@RequestParam("manufacturer") String manufacturer,
@RequestParam("vehType") String vehType,
@RequestParam("startUi") String startUi,
@RequestParam("targetFeature") String targetFeature
) {
List<CarIcon> path = carPathFinderService.findPath(manufacturer, vehType, startUi, targetFeature);
return success(path.stream().map(CarIcon::getIconName).collect(Collectors.joining(" -> ")));
}
}

View File

@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "语音唤醒服务")
@Api(tags = "测试--语音唤醒")
@RestController
@RequestMapping("/kws")
@RequiredArgsConstructor
@ -17,7 +17,7 @@ public class TekKeywordsSpotController {
@ApiOperation("唤醒")
@GetMapping("/wake")
public AjaxResult wake() {
return AjaxResult.ok("ok");
return AjaxResult.ok();
}
@ApiOperation("执行")