|
|
@@ -40,14 +40,14 @@ public class MailNotifyConfigController {
|
|
|
|
|
|
@PostMapping("/insertMailNotifyConfig")
|
|
|
@Operation(summary = "创建系统邮件提醒周期配置")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:create')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:create')")
|
|
|
public CommonResult<Long> insertMailNotifyConfig(@Valid @RequestBody MailNotifyConfigSaveReqVO createReqVO) {
|
|
|
return success(mailNotifyConfigService.createMailNotifyConfig(createReqVO));
|
|
|
}
|
|
|
|
|
|
@PutMapping("/updateMailNotifyConfig")
|
|
|
@Operation(summary = "更新系统邮件提醒周期配置")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:update')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:update')")
|
|
|
public CommonResult<Boolean> updateMailNotifyConfig(@Valid @RequestBody MailNotifyConfigSaveReqVO updateReqVO) {
|
|
|
mailNotifyConfigService.updateMailNotifyConfig(updateReqVO);
|
|
|
return success(true);
|
|
|
@@ -56,7 +56,7 @@ public class MailNotifyConfigController {
|
|
|
@DeleteMapping("/deleteMailNotifyConfigList")
|
|
|
@Parameter(name = "ids", description = "编号", required = true)
|
|
|
@Operation(summary = "批量删除系统邮件提醒周期配置")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:delete')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:delete')")
|
|
|
public CommonResult<Boolean> deleteMailNotifyConfigList(@RequestParam("ids") List<Long> ids) {
|
|
|
mailNotifyConfigService.deleteMailNotifyConfigListByIds(ids);
|
|
|
return success(true);
|
|
|
@@ -65,7 +65,7 @@ public class MailNotifyConfigController {
|
|
|
@GetMapping("/selectMailNotifyConfigById")
|
|
|
@Operation(summary = "获得系统邮件提醒周期配置")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:query')")
|
|
|
public CommonResult<MailNotifyConfigRespVO> selectMailNotifyConfigById(@RequestParam("id") Long id) {
|
|
|
MailNotifyConfigDO mailNotifyConfig = mailNotifyConfigService.getMailNotifyConfig(id);
|
|
|
return success(BeanUtils.toBean(mailNotifyConfig, MailNotifyConfigRespVO.class));
|
|
|
@@ -73,7 +73,7 @@ public class MailNotifyConfigController {
|
|
|
|
|
|
@GetMapping("/getMailNotifyConfigPage")
|
|
|
@Operation(summary = "获得系统邮件提醒周期配置分页")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:query')")
|
|
|
public CommonResult<PageResult<MailNotifyConfigRespVO>> getMailNotifyConfigPage(@Valid MailNotifyConfigPageReqVO pageReqVO) {
|
|
|
PageResult<MailNotifyConfigDO> pageResult = mailNotifyConfigService.getMailNotifyConfigPage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, MailNotifyConfigRespVO.class));
|
|
|
@@ -81,7 +81,7 @@ public class MailNotifyConfigController {
|
|
|
|
|
|
@GetMapping("/exportMailNotifyConfigExcel")
|
|
|
@Operation(summary = "导出系统邮件提醒周期配置 Excel")
|
|
|
- @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('iscs:notify:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportMailNotifyConfigExcel(@Valid MailNotifyConfigPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|