liriming
2024-09-26 2070c06b8cc7b370c3a149669017f4f183f0f172
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java
@@ -40,9 +40,9 @@
    @PreAuthorize("@ss.hasPermission('data:point:query')")
    @GetMapping("page")
    public CommonResult<PageResult<DaPointRespVO>> page(@Valid DaPointPageReqVO reqVO){
        PageResult<DaPointEntity> page = daPointService.queryPage(reqVO);
        return success(BeanUtils.toBean(page, DaPointRespVO.class));
    public CommonResult<PageResult<DaPointDTO>> page(@Valid DaPointPageReqVO reqVO){
        PageResult<DaPointDTO> page = daPointService.queryPage(reqVO);
        return success(page);
    }
    @PreAuthorize("@ss.hasPermission('data:point:query')")
@@ -61,7 +61,7 @@
    }
    @PreAuthorize("@ss.hasPermission('data:point:create')")
    @PostMapping("/add")
    @PostMapping("create")
    public CommonResult<Boolean> create(@RequestBody DaPointDTO daPointDTO){
        String id = UUID.randomUUID().toString();
        daPointDTO.setId(id);
@@ -78,8 +78,8 @@
    @PreAuthorize("@ss.hasPermission('data:point:delete')")
    @DeleteMapping("/delete")
    public CommonResult<Boolean> delete(String[] ids) {
        daPointService.delete(ids);
    public CommonResult<Boolean> delete(String id) {
        daPointService.delete(new String[]{id});
        return success(true);
    }