From 08024ee6885deb58a93948e15ffcb0afdc6431f2 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Mon, 17 Nov 2025 16:49:33 +0800 Subject: [PATCH] 251117 --- .../lan/controller/SmsSendController.java | 32 +++---------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/controller/SmsSendController.java b/mailbox-lan/src/main/java/com/biutag/lan/controller/SmsSendController.java index 0273242..c385b95 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/controller/SmsSendController.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/controller/SmsSendController.java @@ -11,9 +11,7 @@ import com.biutag.lan.util.Sms; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @Tag(name = "短信通知") @RequiredArgsConstructor @@ -29,31 +27,9 @@ public class SmsSendController { return AjaxResult.success(smsSendService.page(page, bo)); } - @NotLogin - @GetMapping("test") - public AjaxResult test(String content) { - Sms.send("15608487213", content); - return AjaxResult.success(); - } - - @NotLogin - @GetMapping("test0") - public AjaxResult test() { - Sms.send("15608487213", "中文"); - return AjaxResult.success(); - } - - @NotLogin - @GetMapping("test1") - public AjaxResult test1() { - Sms.send1("15608487213", "中文"); - return AjaxResult.success(); - } - - @NotLogin - @GetMapping("test2") - public AjaxResult test2() { - Sms.send2("15608487213", "中文"); + @PostMapping("send") + public AjaxResult send(@RequestBody SmsSendVo vo) { + Sms.send(vo.getPhone(), vo.getContent()); return AjaxResult.success(); }