Browse Source

内网短信工具类测试

master
21819 2 years ago
parent
commit
1679345575
  1. 11
      mailbox-lan/src/main/java/com/biutag/lan/controller/work/WorkController.java

11
mailbox-lan/src/main/java/com/biutag/lan/controller/work/WorkController.java

@ -2,6 +2,7 @@ package com.biutag.lan.controller.work;
import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biutag.aop.NotLogin;
import com.biutag.aop.NotPower;
import com.biutag.core.AjaxResult;
import com.biutag.lan.domain.Mail;
@ -13,6 +14,7 @@ import com.biutag.lan.domain.vo.QueryMailVo;
import com.biutag.lan.domain.vo.WorkVo;
import com.biutag.lan.service.MailService;
import com.biutag.lan.service.WorkService;
import com.biutag.lan.util.SmsLan;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
@ -68,8 +70,15 @@ public class WorkController {
@NotPower
@GetMapping("mail/detail")
public AjaxResult<MailFlowDetail> get(@RequestParam String mailId, @RequestParam Integer workId) {
public AjaxResult<MailFlowDetail> get(@RequestParam String mailId, @RequestParam Integer workId) {
return AjaxResult.success(mailService.getMailFlowDetailByWork(mailId, workId));
}
@NotPower
@NotLogin
@GetMapping("send")
public String getFlow(@RequestParam String msg) {
return SmsLan.send("15973160301", msg, "TEST01");
}
}

Loading…
Cancel
Save