| | |
| | | @ApiOperation("新增系统消息") |
| | | @PreAuthorize("@ss.hasPermi('project:systemmessage:add')") |
| | | @Log(title = "系统消息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceSystemmessage serviceSystemmessage) { |
| | | return toAjax(serviceSystemmessageService.save(serviceSystemmessage)); |
| | | boolean save = serviceSystemmessageService.save(serviceSystemmessage); |
| | | return AjaxResult.success(serviceSystemmessage); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("修改系统消息") |
| | | @Log(title = "系统消息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceSystemmessage serviceSystemmessage) { |
| | | return toAjax(serviceSystemmessageService.updateById(serviceSystemmessage)); |
| | |
| | | @ApiOperation("删除系统消息") |
| | | @PreAuthorize("@ss.hasPermi('project:systemmessage:remove')") |
| | | @Log(title = "系统消息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceSystemmessageService.removeByIds(Arrays.asList(ids))); |
| | | } |