chore: swagger接口文档名称调整
This commit is contained in:
parent
faf85b3634
commit
8e1b75b7f9
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "设备信息获取")
|
@Api(tags = "边缘--设备信息获取")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/deviceList")
|
@RequestMapping("/api/deviceList")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@Api(tags = "机器人头部")
|
@Api(tags = "边缘--机器人头部")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/biohead")
|
@RequestMapping("/api/biohead")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -12,11 +12,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@Api(tags = "测试相机服务")
|
@Api(tags = "边缘--相机")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/edge/camera")
|
@RequestMapping("/api/edge/camera")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class TestGrpcController extends BaseController {
|
public class EdgeCameraController extends BaseController {
|
||||||
|
|
||||||
private final EdgeCameraService edgeCameraService;
|
private final EdgeCameraService edgeCameraService;
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@Api(tags = "API操作")
|
@Api(tags = "边缘--API操作")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api")
|
@RequestMapping("/api")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Api(tags = "机器人灵巧手")
|
@Api(tags = "边缘--机器人灵巧手")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/dexHand")
|
@RequestMapping("/api/dexHand")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@Api(tags = "机械臂")
|
@Api(tags = "边缘--机械臂")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/humanoid")
|
@RequestMapping("/api/humanoid")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -16,11 +16,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* 麦克风管理
|
* 麦克风管理
|
||||||
*/
|
*/
|
||||||
@Api(tags = "麦克风")
|
@Api(tags = "边缘--麦克风")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/Microphone")
|
@RequestMapping("/api/Microphone")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class MicrophoneController {
|
public class EdgeMicrophoneController {
|
||||||
|
|
||||||
private final EdgeMicrophoneService microphoneService;
|
private final EdgeMicrophoneService microphoneService;
|
||||||
|
|
||||||
@ -3,7 +3,6 @@ package com.cmvr.web.controller.api;
|
|||||||
import cmvr.api.SpeakerCommand;
|
import cmvr.api.SpeakerCommand;
|
||||||
import com.cmvr.edge.client.service.EdgeSpeakerService;
|
import com.cmvr.edge.client.service.EdgeSpeakerService;
|
||||||
import com.cmvr.common.core.domain.AjaxResult;
|
import com.cmvr.common.core.domain.AjaxResult;
|
||||||
import com.cmvr.common.core.page.TableDataInfo;
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
@ -19,11 +18,11 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* @author cmvr
|
* @author cmvr
|
||||||
*/
|
*/
|
||||||
@Api(tags = "扬声器")
|
@Api(tags = "边缘--扬声器")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/Speaker")
|
@RequestMapping("/api/Speaker")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class SpeakerController {
|
public class EdgeSpeakerController {
|
||||||
|
|
||||||
private final EdgeSpeakerService speakerService;
|
private final EdgeSpeakerService speakerService;
|
||||||
|
|
||||||
@ -1,23 +1,42 @@
|
|||||||
package com.cmvr.web.controller.api;
|
package com.cmvr.web.controller.api;
|
||||||
|
|
||||||
|
import com.cmvr.common.core.controller.BaseController;
|
||||||
import com.cmvr.llm.model.CallAgentVO;
|
import com.cmvr.llm.model.CallAgentVO;
|
||||||
import com.cmvr.llm.service.LargeModelRemoteService;
|
import com.cmvr.llm.service.LargeModelRemoteService;
|
||||||
import com.cmvr.llm.util.LargeModelFileUploadUtil;
|
import com.cmvr.llm.util.LargeModelFileUploadUtil;
|
||||||
import com.cmvr.common.core.domain.AjaxResult;
|
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.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Api(tags = "大模型接口调用")
|
|
||||||
|
@Api(tags = "大模型服务")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/call")
|
@RequestMapping("/api/call")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class LargeModelRemoteController {
|
public class LargeModelRemoteController extends BaseController {
|
||||||
|
|
||||||
private final LargeModelRemoteService largeModelRemoteService;
|
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("执行语音转文本工作流")
|
@ApiOperation("执行语音转文本工作流")
|
||||||
@PostMapping("/speechToText")
|
@PostMapping("/speechToText")
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import com.cmvr.common.core.page.TableDataInfo;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/device/profile")
|
@RequestMapping("/device/profile")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Api(tags = "设备配置信息")
|
@Api(tags = "设备--配置信息")
|
||||||
public class DeDeviceProfileController extends BaseController
|
public class DeDeviceProfileController extends BaseController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@ import com.cmvr.common.core.page.TableDataInfo;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/device/register")
|
@RequestMapping("/device/register")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Api(tags = "设备注册")
|
@Api(tags = "设备--注册")
|
||||||
public class DeDeviceRegistrationController extends BaseController
|
public class DeDeviceRegistrationController extends BaseController
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import java.util.List;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/device/terminal")
|
@RequestMapping("/device/terminal")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Api(tags = "设备终端配置")
|
@Api(tags = "设备--终端配置")
|
||||||
public class DeDeviceTerminalConfigController extends BaseController {
|
public class DeDeviceTerminalConfigController extends BaseController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IDeDeviceTerminalConfigService deDeviceTerminalConfigService;
|
private IDeDeviceTerminalConfigService deDeviceTerminalConfigService;
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@Api(tags = "演示-智能座舱")
|
@Api(tags = "演示--智能座舱")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/show")
|
@RequestMapping("/show")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "文件管理")
|
@Api(tags = "通用--文件管理")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/file")
|
@RequestMapping("/system/file")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "通用分组配置")
|
@Api(tags = "通用--分组配置")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/group")
|
@RequestMapping("/system/group")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import com.cmvr.system.service.ISysMenuService;
|
|||||||
*
|
*
|
||||||
* @author cmvr-iot
|
* @author cmvr-iot
|
||||||
*/
|
*/
|
||||||
@Api(tags = "登录验证")
|
@Api(tags = "通用--登录验证")
|
||||||
@RestController
|
@RestController
|
||||||
public class SysLoginController
|
public class SysLoginController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -52,7 +52,6 @@ public class SysVehOperConfigController extends BaseController {
|
|||||||
return success(sysVehOperConfigService.selectSysVehOperConfigById(configId));
|
return success(sysVehOperConfigService.selectSysVehOperConfigById(configId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation("新增参数配置")
|
@ApiOperation("新增参数配置")
|
||||||
@PreAuthorize("@ss.hasPermi('system:vehOper:add')")
|
@PreAuthorize("@ss.hasPermi('system:vehOper:add')")
|
||||||
@Log(title = "参数管理", businessType = BusinessType.INSERT)
|
@Log(title = "参数管理", businessType = BusinessType.INSERT)
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "检测项配置")
|
@Api(tags = "测试--检测项配置")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/test/detect")
|
@RequestMapping("/test/detect")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@Api(tags = "流程相关接口服务")
|
@Api(tags = "测试--流程服务")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/flow")
|
@RequestMapping("/flow")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "任务配置信息")
|
@Api(tags = "测试--任务配置")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/test/config")
|
@RequestMapping("/test/config")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "任务实例")
|
@Api(tags = "测试--任务实例")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/test/inst")
|
@RequestMapping("/test/inst")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import javax.validation.Valid;
|
|||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Api(tags = "任务编排")
|
@Api(tags = "测试--任务编排")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/test/orchestration")
|
@RequestMapping("/test/orchestration")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|||||||
@ -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(" -> ")));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@Api(tags = "语音唤醒服务")
|
@Api(tags = "测试--语音唤醒")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/kws")
|
@RequestMapping("/kws")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ -17,7 +17,7 @@ public class TekKeywordsSpotController {
|
|||||||
@ApiOperation("唤醒")
|
@ApiOperation("唤醒")
|
||||||
@GetMapping("/wake")
|
@GetMapping("/wake")
|
||||||
public AjaxResult wake() {
|
public AjaxResult wake() {
|
||||||
return AjaxResult.ok("ok");
|
return AjaxResult.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("执行")
|
@ApiOperation("执行")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user