|
@@ -0,0 +1,22 @@
|
|
|
+package com.fdkankan.agent.controller;
|
|
|
+
|
|
|
+import com.fdkankan.agent.common.ResultData;
|
|
|
+import com.fdkankan.agent.service.IMailTemplateService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/agent/test")
|
|
|
+public class TestController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ IMailTemplateService mailTemplateService;
|
|
|
+ @GetMapping("/sendMail/{userName}")
|
|
|
+ public ResultData sendMail(@PathVariable String userName){
|
|
|
+ mailTemplateService.sendAuthExpMail(userName);
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
+}
|