diff --git a/mailbox-lan/src/main/java/com/biutag/lan/controller/work/WorkController.java b/mailbox-lan/src/main/java/com/biutag/lan/controller/work/WorkController.java index 022b50a..feb235a 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/controller/work/WorkController.java +++ b/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 get(@RequestParam String mailId, @RequestParam Integer workId) { + public AjaxResult 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"); + } + }