| | |
| | | |
| | | private final LampPostService lampPostService; |
| | | |
| | | @PostMapping("/add") |
| | | @GetMapping("/add") |
| | | public ResponseVO<Object> addLampPost(@RequestBody LampPostParam lampPostParam){ |
| | | return ResponseUtil.success( lampPostService.addLamp(lampPostParam)); |
| | | } |
| | | |
| | | @PostMapping("/update/{id}") |
| | | @GetMapping("/update/{id}") |
| | | public ResponseVO<Object> updateLampPost(@PathVariable Long id, @RequestBody LampPostParam lampPostParam){ |
| | | return ResponseUtil.success( lampPostService.updateLamp(id,lampPostParam)); |
| | | } |
| | |
| | | } |
| | | |
| | | @AnonymousAccess |
| | | @GetMapping("/list") |
| | | @PostMapping("/list") |
| | | public ResponseVO<Object> listLamp(){ |
| | | //List<LampPost> list = lampPostService.list(); |
| | | return ResponseUtil.success(lampPostService.list()); |