|
|
|
|
@ -18,6 +18,7 @@ import javax.validation.Valid;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
|
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
|
|
|
|
|
|
|
|
|
|
@Tag(name = "管理后台 - 邮件模版")
|
|
|
|
|
@RestController
|
|
|
|
|
@ -81,8 +82,8 @@ public class MailTemplateController {
|
|
|
|
|
@Operation(summary = "发送短信")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:mail-template:send-mail')")
|
|
|
|
|
public CommonResult<Long> sendMail(@Valid @RequestBody MailTemplateSendReqVO sendReqVO) {
|
|
|
|
|
return success(mailSendService.sendSingleMailToAdmin(sendReqVO.getMail(), null,
|
|
|
|
|
return success(mailSendService.sendSingleMailToAdmin(sendReqVO.getMail(), getLoginUserId(),
|
|
|
|
|
sendReqVO.getTemplateCode(), sendReqVO.getTemplateParams()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|