From 71a2a8245db4c04be3f96a9eb9b47931d3130650 Mon Sep 17 00:00:00 2001
From: zlyx <1242874891@qq.com>
Date: 星期三, 18 一月 2023 17:09:43 +0800
Subject: [PATCH] refactor 重构 common, framework 包结构, 参照 cloud 版本拆分子模块 ; update 更新模块包名 ; delete 移除 sms 模块, oss 模块, framework 模块 (并入 common 模块) ;

---
 ruoyi-demo/src/main/java/com/ruoyi/demo/controller/MailController.java |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/MailController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/MailController.java
index 6dabe51..3d890ac 100644
--- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/MailController.java
+++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/MailController.java
@@ -1,10 +1,7 @@
 package com.ruoyi.demo.controller;
 
 import com.ruoyi.common.core.domain.R;
-import com.ruoyi.common.utils.email.MailUtils;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
+import com.ruoyi.common.mail.utils.MailUtils;
 import lombok.RequiredArgsConstructor;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -20,27 +17,34 @@
  * @author Michelle.Chung
  */
 @Validated
-@Api(value = "閭欢鍙戦�佹渚�", tags = {"閭欢鍙戦�佹渚�"})
 @RequiredArgsConstructor
 @RestController
 @RequestMapping("/demo/mail")
 public class MailController {
 
-    @ApiOperation("鍙戦�侀偖浠�")
+    /**
+     * 鍙戦�侀偖浠�
+     *
+     * @param to      鎺ユ敹浜�
+     * @param subject 鏍囬
+     * @param text    鍐呭
+     */
     @GetMapping("/sendSimpleMessage")
-    public R<Void> sendSimpleMessage(@ApiParam("鎺ユ敹浜�") String to,
-                                     @ApiParam("鏍囬") String subject,
-                                     @ApiParam("鍐呭") String text) {
+    public R<Void> sendSimpleMessage(String to, String subject, String text) {
         MailUtils.sendText(to, subject, text);
         return R.ok();
     }
 
-    @ApiOperation("鍙戦�侀偖浠讹紙甯﹂檮浠讹級")
+    /**
+     * 鍙戦�侀偖浠讹紙甯﹂檮浠讹級
+     *
+     * @param to       鎺ユ敹浜�
+     * @param subject  鏍囬
+     * @param text     鍐呭
+     * @param filePath 闄勪欢璺緞
+     */
     @GetMapping("/sendMessageWithAttachment")
-    public R<Void> sendMessageWithAttachment(@ApiParam("鎺ユ敹浜�") String to,
-                                             @ApiParam("鏍囬") String subject,
-                                             @ApiParam("鍐呭") String text,
-                                             @ApiParam("闄勪欢璺緞") String filePath) {
+    public R<Void> sendMessageWithAttachment(String to, String subject, String text, String filePath) {
         MailUtils.sendText(to, subject, text, new File(filePath));
         return R.ok();
     }

--
Gitblit v1.9.3