| | |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | @PreAuthorize("@ss.hasPermission('data:point:update')") |
| | | @PutMapping("/enable") |
| | | @Operation(summary = "启用") |
| | | @Transactional |
| | | public CommonResult<Boolean> enable(@RequestBody String[] ids) { |
| | | daPointService.enableByIds(ids); |
| | | return success(true); |
| | |
| | | @PreAuthorize("@ss.hasPermission('data:point:update')") |
| | | @PutMapping("/disable") |
| | | @Operation(summary = "禁用") |
| | | @Transactional |
| | | public CommonResult<Boolean> disable(@RequestBody String[] ids) { |
| | | daPointService.disableByIds(ids); |
| | | return success(true); |