|
|
|
@ -11,9 +11,7 @@ import com.biutag.lan.util.Sms; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Tag(name = "短信通知") |
|
|
|
@Tag(name = "短信通知") |
|
|
|
@RequiredArgsConstructor |
|
|
|
@RequiredArgsConstructor |
|
|
|
@ -29,31 +27,9 @@ public class SmsSendController { |
|
|
|
return AjaxResult.success(smsSendService.page(page, bo)); |
|
|
|
return AjaxResult.success(smsSendService.page(page, bo)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@NotLogin |
|
|
|
@PostMapping("send") |
|
|
|
@GetMapping("test") |
|
|
|
public AjaxResult<Void> send(@RequestBody SmsSendVo vo) { |
|
|
|
public AjaxResult<Void> test(String content) { |
|
|
|
Sms.send(vo.getPhone(), vo.getContent()); |
|
|
|
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", "中文"); |
|
|
|
|
|
|
|
return AjaxResult.success(); |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|