Commit b532b124 authored by 赵建伟's avatar 赵建伟

update codes

parent 125f225d
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<workItem from="1587982524517" duration="5052000" /> <workItem from="1587982524517" duration="5052000" />
<workItem from="1588152481879" duration="139000" /> <workItem from="1588152481879" duration="139000" />
<workItem from="1588154352798" duration="195000" /> <workItem from="1588154352798" duration="195000" />
<workItem from="1588220085338" duration="7403000" /> <workItem from="1588220085338" duration="7993000" />
</task> </task>
<task id="LOCAL-00001" summary="add init codes."> <task id="LOCAL-00001" summary="add init codes.">
<created>1587723565207</created> <created>1587723565207</created>
......
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
<workItem from="1584945647680" duration="4469000" /> <workItem from="1584945647680" duration="4469000" />
<workItem from="1588148891822" duration="2318000" /> <workItem from="1588148891822" duration="2318000" />
<workItem from="1588152718016" duration="1463000" /> <workItem from="1588152718016" duration="1463000" />
<workItem from="1588154601852" duration="24020000" /> <workItem from="1588154601852" duration="24944000" />
</task> </task>
<servers /> <servers />
</component> </component>
......
#!/usr/bin/env bash
curl -X POST -H "Content-Type:application/json" --data '{"name":"demo","subject":"abc"}' http://localhost:8553/api/report/sendEmail
curl -X GET http://localhost:8553/api/report/sendEmail?name=demo&subject=123
\ No newline at end of file
...@@ -2,10 +2,7 @@ package com.gmei.data.gateway.server.endpoint; ...@@ -2,10 +2,7 @@ package com.gmei.data.gateway.server.endpoint;
import com.gmei.data.gateway.server.service.BiReportService; import com.gmei.data.gateway.server.service.BiReportService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping(value = "/api/report") @RequestMapping(value = "/api/report")
...@@ -21,7 +18,7 @@ public class BiReportEndpoint { ...@@ -21,7 +18,7 @@ public class BiReportEndpoint {
} }
@ResponseBody @ResponseBody
@RequestMapping(value = "/sendEmail") @PostMapping(value = "/sendEmail")
public int sendEmail(@RequestParam String name,@RequestParam String subject){ public int sendEmail(@RequestParam String name,@RequestParam String subject){
return biReportService.sendEmail(name,subject); return biReportService.sendEmail(name,subject);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment