| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "排班时间配置查询") |
| | | @PostMapping("list") |
| | | @GetMapping("list") |
| | | public Result<?> shiftTimeList() { |
| | | return Result.success(shiftTimeService.shiftTimeList()); |
| | | } |
| | | |
| | | @ApiOperation(value = "排班时间配置删除") |
| | | @PostMapping("remove") |
| | | @DeleteMapping("remove") |
| | | public Result<?> shiftTimeRemove(Long id) { |
| | | return Result.success(shiftTimeService.removeById(id)); |
| | | } |