|
@@ -37,7 +37,7 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 查询校园新闻列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(XiaoyuanNotice xiaoyuanNotice)
|
|
|
{
|
|
@@ -49,7 +49,7 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 导出校园新闻列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:export')")
|
|
|
@Log(title = "校园新闻", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, XiaoyuanNotice xiaoyuanNotice)
|
|
@@ -62,7 +62,7 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 获取校园新闻详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:query')")
|
|
|
@GetMapping(value = "/{noticeId}")
|
|
|
public AjaxResult getInfo(@PathVariable("noticeId") Integer noticeId)
|
|
|
{
|
|
@@ -72,7 +72,7 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 新增校园新闻
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:add')")
|
|
|
@Log(title = "校园新闻", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody XiaoyuanNotice xiaoyuanNotice)
|
|
@@ -83,9 +83,9 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 修改校园新闻
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:edit')")
|
|
|
@Log(title = "校园新闻", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping
|
|
|
+ @PostMapping("/put")
|
|
|
public AjaxResult edit(@RequestBody XiaoyuanNotice xiaoyuanNotice)
|
|
|
{
|
|
|
return toAjax(xiaoyuanNoticeService.updateXiaoyuanNotice(xiaoyuanNotice));
|
|
@@ -94,9 +94,9 @@ public class XiaoyuanNoticeController extends BaseController
|
|
|
/**
|
|
|
* 删除校园新闻
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:notice:remove')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('xiaoYuan:notice:remove')")
|
|
|
@Log(title = "校园新闻", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{noticeIds}")
|
|
|
+ @GetMapping("/delete/{noticeIds}")
|
|
|
public AjaxResult remove(@PathVariable Integer[] noticeIds)
|
|
|
{
|
|
|
return toAjax(xiaoyuanNoticeService.deleteXiaoyuanNoticeByNoticeIds(noticeIds));
|