| | |
| | | |
| | | /** |
| | | * 新增主机 |
| | | * |
| | | * @param interphoneHostParam |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | public ResponseVO<Object> addHost(@RequestBody InterphoneHostParam interphoneHostParam){ |
| | | public ResponseVO<Object> addHost(@RequestBody InterphoneHostParam interphoneHostParam) { |
| | | return ResponseUtil.success(interphoneHostService.addHost(interphoneHostParam)); |
| | | } |
| | | |
| | |
| | | * 修改主机 |
| | | */ |
| | | @PostMapping("/update/{id}") |
| | | public ResponseVO<Object> updateHost(@PathVariable Integer id, @RequestBody InterphoneHostParam interphoneHostParam){ |
| | | return ResponseUtil.success(interphoneHostService.updateHost(id,interphoneHostParam)); |
| | | public ResponseVO<Object> updateHost(@PathVariable Integer id, @RequestBody InterphoneHostParam interphoneHostParam) { |
| | | return ResponseUtil.success(interphoneHostService.updateHost(id, interphoneHostParam)); |
| | | } |
| | | |
| | | /** |
| | | * 删除主机 |
| | | */ |
| | | @PostMapping("/delete/{id}") |
| | | public ResponseVO<Object> deleteHost(@PathVariable Integer id){ |
| | | public ResponseVO<Object> deleteHost(@PathVariable Integer id) { |
| | | return ResponseUtil.success(interphoneHostService.deleteHost(id)); |
| | | } |
| | | |
| | |
| | | * 主机详情 |
| | | */ |
| | | @GetMapping("/detail/{id}") |
| | | public ResponseVO<Object> detailHost(@PathVariable Integer id){ |
| | | public ResponseVO<Object> detailHost(@PathVariable Integer id) { |
| | | return ResponseUtil.success(interphoneHostService.getHost(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除主机 |
| | | */ |
| | | @GetMapping("/getList") |
| | | public ResponseVO<Object> getInterphoneHostList(@PathVariable String keyword) { |
| | | return ResponseUtil.success(interphoneHostService.getInterphoneHostList(keyword)); |
| | | } |
| | | |
| | | |
| | | } |