Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
115033cf
Commit
115033cf
authored
May 23, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
7181c6e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
HttpDaprUtil.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
+21
-13
No files found.
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
View file @
115033cf
...
...
@@ -8,9 +8,9 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.web.client.RestTemplate
;
/**
* @author fxj
* @date 2022年05月23日 9:47
*/
* @author fxj
* @date 2022/5/23 18:13
*/
@Log4j2
public
class
HttpDaprUtil
{
private
static
RestTemplate
restTemplate
;
...
...
@@ -18,16 +18,16 @@ public class HttpDaprUtil {
private
static
StringBuffer
stringBuffer
;
/**
* @author fxj
* @date 2022-05-23 17:56
* @param appUrl
* @param appId
* @param method
* @param param
* @param cs
* @return com.yifu.cloud.plus.v1.yifu.common.core.util.R<T>
* @description
get请求获取指定对象信息
**/
* @param appUrl
* @param appId
* @param method
* @param param
* @param cs
* @return com.yifu.cloud.plus.v1.yifu.common.core.util.R<T>
* @author fxj
* @date 2022-05-23 17:56
* @description
get请求获取指定对象信息
**/
public
static
<
T
>
R
<
T
>
invokeMothod
(
String
appUrl
,
String
appId
,
String
method
,
String
param
,
Class
cs
)
throws
Exception
{
// 实例化 RestTemplate
if
(
null
==
restTemplate
)
{
...
...
@@ -49,6 +49,14 @@ public class HttpDaprUtil {
}
/**
* @param appUrl
* @param appId
* @param method
* @param param
* @author fxj
* @date 2022/5/23 18:11
*/
private
static
void
initUrl
(
String
appUrl
,
String
appId
,
String
method
,
String
param
)
{
stringBuffer
=
new
StringBuffer
();
stringBuffer
.
append
(
appUrl
);
...
...
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