liusheng
2024-02-28 ee99290acc01bf294b44f39194f93762d7a3de2d
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceSystemmessageController.java
@@ -97,10 +97,11 @@
    @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);
    }
    /**
@@ -108,7 +109,7 @@
     */
    @ApiOperation("修改系统消息")
    @Log(title = "系统消息", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    @RepeatSubmit
    public AjaxResult edit(@RequestBody ServiceSystemmessage serviceSystemmessage) {
        return toAjax(serviceSystemmessageService.updateById(serviceSystemmessage));
@@ -120,7 +121,7 @@
    @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)));
    }