| | |
| | | */ |
| | | @ApiOperation("获取捐献案例器官列详细信息") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonorchargeService.getById(id)); |
| | | } |
| | |
| | | @ApiOperation("新增捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:add')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonorcharge serviceDonorcharge) { |
| | | return toAjax(serviceDonorchargeService.save(serviceDonorcharge)); |
| | |
| | | @ApiOperation("修改捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:edit')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonorcharge serviceDonorcharge) { |
| | | return toAjax(serviceDonorchargeService.updateById(serviceDonorcharge)); |
| | |
| | | @ApiOperation("删除捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:remove')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonorchargeService.removeByIds(Arrays.asList(ids))); |
| | | } |