接口调整

This commit is contained in:
2023-08-16 16:29:54 +08:00
parent c7fd55a58a
commit ee43dce699
15 changed files with 66 additions and 8 deletions

View File

@@ -66,5 +66,15 @@ public class CsDataSetController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/getModuleDataSet")
@ApiOperation("获取子模块数据集")
@ApiImplicitParam(name = "modelId", value = "模板id", required = true)
public HttpResult<List<CsDataSet>> getModuleDataSet(@RequestParam("modelId") String modelId){
String methodDescribe = getMethodDescribe("getModuleDataSet");
List<CsDataSet> list = csDataSetService.getModuleDataSet(modelId);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
}
}

View File

@@ -170,11 +170,12 @@ public class EquipmentDeliveryController extends BaseController {
@ApiOperation("根据网关id调整软件信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "nDId", value = "网关id", required = true),
@ApiImplicitParam(name = "id", value = "软件信息id", required = true)
@ApiImplicitParam(name = "id", value = "软件信息id", required = true),
@ApiImplicitParam(name = "module", value = "模块个数", required = true)
})
public HttpResult<Boolean> updateSoftInfoBynDid(@RequestParam("nDId") String nDid,@RequestParam("id") String id){
public HttpResult<Boolean> updateSoftInfoBynDid(@RequestParam("nDId") String nDid,@RequestParam("id") String id,@RequestParam("module") Integer module){
String methodDescribe = getMethodDescribe("updateSoftInfoBynDid");
csEquipmentDeliveryService.updateSoftInfoBynDid(nDid,id);
csEquipmentDeliveryService.updateSoftInfoBynDid(nDid,id,module);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}