Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
b532b124
You need to sign in or sign up before continuing.
Commit
b532b124
authored
Apr 30, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
125f225d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
workspace.xml
.idea/workspace.xml
+1
-1
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+1
-1
send_email.sh
lib/java/bi-report-service/service-client/shs/send_email.sh
+7
-0
BiReportEndpoint.java
...m/gmei/data/gateway/server/endpoint/BiReportEndpoint.java
+2
-5
No files found.
.idea/workspace.xml
View file @
b532b124
...
@@ -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=
"7
40
3000"
/>
<workItem
from=
"1588220085338"
duration=
"7
99
3000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"add init codes."
>
<task
id=
"LOCAL-00001"
summary=
"add init codes."
>
<created>
1587723565207
</created>
<created>
1587723565207
</created>
...
...
lib/java/bi-report-service/.idea/workspace.xml
View file @
b532b124
...
@@ -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=
"24
020
000"
/>
<workItem
from=
"1588154601852"
duration=
"24
944
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
lib/java/bi-report-service/service-client/shs/send_email.sh
0 → 100755
View file @
b532b124
#!/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
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/endpoint/BiReportEndpoint.java
View file @
b532b124
...
@@ -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
@
Reque
stMapping
(
value
=
"/sendEmail"
)
@
Po
stMapping
(
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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment