| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.form.BatchEditPointForm; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | return ywPointService.update(form); |
| | | } |
| | | |
| | | @PutMapping("/batch") |
| | | @ApiOperation(value = "批量修改运维单位", notes = "批量修改运维单位") |
| | | public Result batchEdit(@RequestBody @Validated BatchEditPointForm form) { |
| | | return ywPointService.batchEdit(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | |
| | | public Result list() { |
| | | return ywPointService.all(); |
| | | } |
| | | |
| | | @GetMapping("/select") |
| | | @ApiOperation(value = "点位下拉", notes = "点位下拉") |
| | | public Result select(@NotBlank(message = "请输入点位") String keyword) { |
| | | return ywPointService.select(keyword); |
| | | } |
| | | } |