Browse Source

251117

厅长信箱
wxc 2 weeks ago
parent
commit
08024ee688
  1. 32
      mailbox-lan/src/main/java/com/biutag/lan/controller/SmsSendController.java

32
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<Void> test(String content) {
Sms.send("15608487213", content);
return AjaxResult.success();
}
@NotLogin
@GetMapping("test0")
public AjaxResult<Void> test() {
Sms.send("15608487213", "中文");
return AjaxResult.success();
}
@NotLogin
@GetMapping("test1")
public AjaxResult<Void> test1() {
Sms.send1("15608487213", "中文");
return AjaxResult.success();
}
@NotLogin
@GetMapping("test2")
public AjaxResult<Void> test2() {
Sms.send2("15608487213", "中文");
@PostMapping("send")
public AjaxResult<Void> send(@RequestBody SmsSendVo vo) {
Sms.send(vo.getPhone(), vo.getContent());
return AjaxResult.success();
}

Loading…
Cancel
Save