|
@@ -42,19 +42,13 @@ import java.util.Map;
|
|
public class BuildingController extends BaseController {
|
|
public class BuildingController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- public BuildingService buildingService;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- public FileService fileService;
|
|
|
|
-
|
|
|
|
- @Value("${output.file.path}")
|
|
|
|
- private String OUT_PATH;
|
|
|
|
|
|
+ private BuildingService buildingService;
|
|
|
|
|
|
|
|
|
|
// @RequiresRoles(value = {"admin"}, logical = Logical.OR)
|
|
// @RequiresRoles(value = {"admin"}, logical = Logical.OR)
|
|
@ApiOperation("列表")
|
|
@ApiOperation("列表")
|
|
@PostMapping("list")
|
|
@PostMapping("list")
|
|
- public Result list(@RequestBody PageRequest param) {
|
|
|
|
|
|
+ public Result<BuildingEntity> list(@RequestBody PageRequest param) {
|
|
startPage(param);
|
|
startPage(param);
|
|
PageInfo<BuildingEntity> page = new PageInfo<>(buildingService.findAll());
|
|
PageInfo<BuildingEntity> page = new PageInfo<>(buildingService.findAll());
|
|
return Result.success(page);
|
|
return Result.success(page);
|
|
@@ -119,15 +113,4 @@ public class BuildingController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-// @ApiOperation("123")
|
|
|
|
-// @PostMapping("123")
|
|
|
|
-// public Result detail123(BuildingRequest param) {
|
|
|
|
-//
|
|
|
|
-//// @NotNull(message = "建筑物名称不能为空") String name = param.getName();
|
|
|
|
-//// @NotNull(message = "建筑物描述不能为空") String description = param.getDescription();
|
|
|
|
-//
|
|
|
|
-// return Result.success();
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|