接口调整

This commit is contained in:
2023-06-27 20:23:07 +08:00
parent 022bf29a39
commit d07718437a
9 changed files with 74 additions and 29 deletions

View File

@@ -131,10 +131,13 @@ public class EquipmentDeliveryController extends BaseController {
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/deviceData")
@ApiOperation("装置基础数据和模板数据")
@ApiImplicitParam(name = "deviceId", value = "装置id", required = true)
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId){
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "装置id", required = true),
@ApiImplicitParam(name = "type", value = "类型", required = true),
})
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId,@RequestParam String type){
String methodDescribe = getMethodDescribe("getDeviceData");
DeviceManagerVO vo = csEquipmentDeliveryService.getDeviceData(deviceId);
DeviceManagerVO vo = csEquipmentDeliveryService.getDeviceData(deviceId,type);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, vo, methodDescribe);
}