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