| | |
| | | /** |
| | | * 查询系统消息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysMessage sysMessage) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出系统消息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:export')") |
| | | @Log(title = "系统消息", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysMessage sysMessage) { |
| | |
| | | /** |
| | | * 获取系统消息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:query')") |
| | | @GetMapping(value = "/{messageId}") |
| | | public AjaxResult getInfo(@PathVariable("messageId") Long messageId) { |
| | | return AjaxResult.success(sysMessageService.selectSysMessageByMessageId(messageId)); |
| | |
| | | /** |
| | | * 新增系统消息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:add')") |
| | | @Log(title = "系统消息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysMessage sysMessage) { |
| | |
| | | /** |
| | | * 修改系统消息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:edit')") |
| | | @Log(title = "系统消息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysMessage sysMessage) { |
| | |
| | | /** |
| | | * 删除系统消息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:message:remove')") |
| | | @Log(title = "系统消息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{messageIds}") |
| | | public AjaxResult remove(@PathVariable Long[] messageIds) { |