|
|
@ -75,7 +75,7 @@ public class MailTemplateController { |
|
|
|
|
|
|
|
@PostMapping("saveConfig") |
|
|
|
@ApiOperation("保存配置信息") |
|
|
|
@LogOperation("保存配置信息") |
|
|
|
// @LogOperation("保存配置信息")
|
|
|
|
public Result saveConfig(@RequestBody EmailConfig config){ |
|
|
|
//校验数据
|
|
|
|
ValidatorUtils.validateEntity(config); |
|
|
@ -95,7 +95,7 @@ public class MailTemplateController { |
|
|
|
|
|
|
|
@PostMapping |
|
|
|
@ApiOperation("保存") |
|
|
|
@LogOperation("保存") |
|
|
|
// @LogOperation("保存")
|
|
|
|
public Result save(SysMailTemplateDTO dto){ |
|
|
|
//校验类型
|
|
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
@ -107,7 +107,7 @@ public class MailTemplateController { |
|
|
|
|
|
|
|
@PutMapping |
|
|
|
@ApiOperation("修改") |
|
|
|
@LogOperation("修改") |
|
|
|
// @LogOperation("修改")
|
|
|
|
public Result update(SysMailTemplateDTO dto){ |
|
|
|
//校验类型
|
|
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
@ -119,7 +119,7 @@ public class MailTemplateController { |
|
|
|
|
|
|
|
@DeleteMapping |
|
|
|
@ApiOperation("删除") |
|
|
|
@LogOperation("删除") |
|
|
|
// @LogOperation("删除")
|
|
|
|
public Result delete(@RequestBody Long[] ids){ |
|
|
|
sysMailTemplateService.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
|
|
|
@ -128,7 +128,7 @@ public class MailTemplateController { |
|
|
|
|
|
|
|
@PostMapping("send") |
|
|
|
@ApiOperation("发送邮件") |
|
|
|
@LogOperation("发送邮件") |
|
|
|
// @LogOperation("发送邮件")
|
|
|
|
public Result send(Long id, String mailTo, String mailCc, String params) throws Exception{ |
|
|
|
boolean flag = sysMailTemplateService.sendMail(id, mailTo, mailCc, params); |
|
|
|
if(flag){ |
|
|
|