| | |
| | | @Api(value = "动态接口字段管理", tags = {"动态接口字段管理"}) |
| | | @ApiResource({"blade-system/interface-config-field"}) |
| | | @RestController |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/controller/InterfaceConfigFieldController.class */ |
| | | public class InterfaceConfigFieldController extends BladeController { |
| | | private IInterfaceConfigFieldService interfaceConfigFieldService; |
| | | |
| | |
| | | @ApiOperation(value = "接口字段表列表", notes = "传入map") |
| | | public R<List<InterfaceConfigFieldVO>> list(@RequestParam @ApiIgnore Map<String, Object> params) { |
| | | String configId = (String) params.get("configId"); |
| | | List<InterfaceConfigField> list = this.interfaceConfigFieldService.list(Condition.getQueryWrapper(params, InterfaceConfigField.class).lambda().eq(Func.isNotBlank(configId), (v0) -> { |
| | | return v0.getConfigId(); |
| | | }, configId)); |
| | | List<InterfaceConfigField> list = this.interfaceConfigFieldService.list(Condition.getQueryWrapper(params, InterfaceConfigField.class).lambda().eq(Func.isNotBlank(configId), |
| | | InterfaceConfigField::getConfigId, configId)); |
| | | List<InterfaceConfigFieldVO> collect = list.stream().map(item -> { |
| | | InterfaceConfigFieldVO convert = InterfaceConfigFieldConvert.INSTANCE.convert(item); |
| | | convert.setRelationFieldNames(Optional.ofNullable(this.interfaceConfigFieldService.findRelation(item)).map(f -> { |
| | |
| | | @GetResource({"/count"}) |
| | | @ApiOperation(value = "接口字段表统计值", notes = "传入map") |
| | | public R<Long> count(@RequestParam @ApiIgnore Map<String, Object> params) { |
| | | Long count = Long.valueOf(this.interfaceConfigFieldService.count(Condition.getQueryWrapper(params, InterfaceConfigField.class))); |
| | | Long count = this.interfaceConfigFieldService.count(Condition.getQueryWrapper(params, InterfaceConfigField.class)); |
| | | return R.data(count); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @DeleteResource({"/remove"}) |
| | | @ApiOperation(value = "接口字段表删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) { |
| | | public R<Void> remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) { |
| | | if (ids.isEmpty()) { |
| | | return R.status(false); |
| | | } |