| | |
| | | @Slf4j |
| | | @Api("捐献器官获取") |
| | | @RestController |
| | | @RequestMapping("/system/donationwitnessorgan") |
| | | @RequestMapping("/project/donationwitnessorgan") |
| | | public class ServiceDonationwitnessorganController extends BaseController { |
| | | @Autowired |
| | | private IServiceDonationwitnessorganService serviceDonationwitnessorganService; |
| | |
| | | */ |
| | | @ApiOperation("获取捐献器官获取详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonationwitnessorganService.getById(id)); |
| | | } |
| | |
| | | @ApiOperation("新增捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:add')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.save(serviceDonationwitnessorgan)); |
| | |
| | | @ApiOperation("修改捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:edit')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.updateById(serviceDonationwitnessorgan)); |
| | |
| | | @ApiOperation("删除捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:remove')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonationwitnessorganService.removeByIds(Arrays.asList(ids))); |
| | | } |