Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
dd72cfec
authored
2025-10-17 14:50:08 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
1、连接器注册到数据港
1 parent
653402e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
46 deletions
src/main/java/com/csbr/qingcloud/portal/util/DataPortConnectUtil.java
src/main/java/com/csbr/qingcloud/portal/util/DataPortConnectUtil.java
View file @
dd72cfe
...
...
@@ -57,52 +57,6 @@ public class DataPortConnectUtil {
}
/**
* 经办人用户注册
* @return
*/
public
String
operatorRegister
(
Object
obj
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Content-Type"
,
"application/json"
);
headers
.
set
(
"authKey"
,
dataPortConfig
.
getAuthKey
());
HttpEntity
<
Object
>
request
=
new
HttpEntity
<>(
obj
,
headers
);
DataPortRes
dataPortRes
=
restTemplate
.
postForObject
(
dataPortConfig
.
getRequestUri
()
+
"/api/user/user/operatorRegister"
,
request
,
DataPortRes
.
class
);
if
(
ObjectUtils
.
isEmpty
(
dataPortRes
))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
"经办人用户注册失败."
);
}
if
(
200
!=
dataPortRes
.
getCode
()
&&
201
!=
dataPortRes
.
getCode
())
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
dataPortRes
.
getMessage
());
}
return
(
String
)
dataPortRes
.
getData
();
}
/**
* 法人用户注册
* @return
*/
public
String
enterpriseRegister
(
Object
obj
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Content-Type"
,
"application/json"
);
headers
.
set
(
"authKey"
,
dataPortConfig
.
getAuthKey
());
HttpEntity
<
Object
>
request
=
new
HttpEntity
<>(
obj
,
headers
);
DataPortRes
dataPortRes
=
restTemplate
.
postForObject
(
dataPortConfig
.
getRequestUri
()
+
"/api/user/user/enterpriseRegister"
,
request
,
DataPortRes
.
class
);
if
(
ObjectUtils
.
isEmpty
(
dataPortRes
))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
"法人用户注册失败."
);
}
if
(
200
!=
dataPortRes
.
getCode
()
&&
201
!=
dataPortRes
.
getCode
())
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
dataPortRes
.
getMessage
());
}
return
(
String
)
dataPortRes
.
getData
();
}
/**
* 调用数据港接口(authKey调用)
* @return
*/
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment