|
@@ -5,14 +5,19 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.module.system.controller.admin.mail.vo.log.MailLogPageReqVO;
|
|
import cn.iocoder.yudao.module.system.controller.admin.mail.vo.log.MailLogPageReqVO;
|
|
import cn.iocoder.yudao.module.system.controller.admin.mail.vo.log.MailLogRespVO;
|
|
import cn.iocoder.yudao.module.system.controller.admin.mail.vo.log.MailLogRespVO;
|
|
|
|
+import cn.iocoder.yudao.module.system.controller.admin.mail.vo.template.MailTemplateRespVO;
|
|
import cn.iocoder.yudao.module.system.convert.mail.MailLogConvert;
|
|
import cn.iocoder.yudao.module.system.convert.mail.MailLogConvert;
|
|
|
|
+import cn.iocoder.yudao.module.system.convert.mail.MailTemplateConvert;
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.mail.MailLogDO;
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.mail.MailLogDO;
|
|
|
|
+import cn.iocoder.yudao.module.system.dal.dataobject.mail.MailTemplateDO;
|
|
import cn.iocoder.yudao.module.system.service.mail.MailLogService;
|
|
import cn.iocoder.yudao.module.system.service.mail.MailLogService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -37,4 +42,13 @@ public class MailLogController {
|
|
return success(MailLogConvert.INSTANCE.convertPage(pageResult));
|
|
return success(MailLogConvert.INSTANCE.convertPage(pageResult));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("/get")
|
|
|
|
+ @ApiOperation("获得邮箱日志")
|
|
|
|
+ @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
|
|
|
|
+ @PreAuthorize("@ss.hasPermission('system:mail-log:query')")
|
|
|
|
+ public CommonResult<MailLogRespVO> getMailTemplate(@RequestParam("id") Long id) {
|
|
|
|
+ MailLogDO mailLogDO = mailLogService.getMailLog(id);
|
|
|
|
+ return success(MailLogConvert.INSTANCE.convert(mailLogDO));
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|