Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
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
胡园园
yanxuan-qc-change-system
Commits
02fb504e
Commit
02fb504e
authored
Nov 30, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数解析方式改变,请求邮件参数方式改变~
parent
e2229cbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
EmailTemplateServiceImpl.java
...egration/email/service/impl/EmailTemplateServiceImpl.java
+4
-4
EmailTemplateRpcService.java
...hange/integration/flow/email/EmailTemplateRpcService.java
+5
-2
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/email/service/impl/EmailTemplateServiceImpl.java
View file @
02fb504e
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
email
.
service
.
impl
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
email
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.mail.yanxuan.change.integration.email.email.EmailTemplateResponResult
;
import
com.netease.mail.yanxuan.change.integration.flow.email.EmailTemplateRpcService
;
import
com.netease.mail.yanxuan.change.integration.flow.email.EmailTemplateRpcService
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -30,8 +30,8 @@ public class EmailTemplateServiceImpl {
...
@@ -30,8 +30,8 @@ public class EmailTemplateServiceImpl {
params
.
put
(
"templateCode"
,
templateCode
);
params
.
put
(
"templateCode"
,
templateCode
);
params
.
put
(
"type"
,
type
);
params
.
put
(
"type"
,
type
);
logger
.
info
(
JSONObject
.
toJSONString
(
"邮箱接口参数展示mockData={},templateCode={},type={}"
),
mockData
,
templateCode
,
type
);
logger
.
info
(
JSONObject
.
toJSONString
(
"邮箱接口参数展示mockData={},templateCode={},type={}"
),
mockData
,
templateCode
,
type
);
EmailTemplateResponResult
emailTemplateResponResult
=
service
.
template
(
JSONObject
.
toJSONString
(
params
)
);
AjaxResponse
<
String
>
response
=
service
.
template
(
params
);
logger
.
info
(
"请求后参数展示\n"
+
emailTemplateResponResult
.
toString
()
);
logger
.
info
(
"请求后参数展示\n"
+
response
);
return
emailTemplateResponResult
.
getData
();
return
response
.
getData
();
}
}
}
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/email/EmailTemplateRpcService.java
View file @
02fb504e
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
email
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
email
;
import
com.netease.
mail.yanxuan.change.integration.email.email.EmailTemplateResponResult
;
import
com.netease.
yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.Map
;
/**
/**
* @author WangJiaXiang
* @author WangJiaXiang
...
@@ -14,7 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -14,7 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
public
interface
EmailTemplateRpcService
{
public
interface
EmailTemplateRpcService
{
@PostMapping
(
"/templates/flowx/template/assemble.json"
)
@PostMapping
(
"/templates/flowx/template/assemble.json"
)
EmailTemplateResponResult
template
(
String
json
);
AjaxResponse
<
String
>
template
(
@RequestBody
Map
<
String
,
Object
>
params
);
}
}
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