Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
syncData
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
chenzy
syncData
Commits
333bd653
Commit
333bd653
authored
Apr 02, 2025
by
chenzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】用户,组织相关
parent
3318458f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
SyncDataController.java
...n/java/com/keymobile/syncdata/api/SyncDataController.java
+5
-1
No files found.
src/main/java/com/keymobile/syncdata/api/SyncDataController.java
View file @
333bd653
...
@@ -48,9 +48,13 @@ public class SyncDataController {
...
@@ -48,9 +48,13 @@ public class SyncDataController {
@PostMapping
(
"/syncData"
)
@PostMapping
(
"/syncData"
)
public
void
SyncData
(
@RequestParam
String
type
,
@Nullable
@RequestBody
Map
<
String
,
Integer
>
requestBody
)
{
public
void
SyncData
(
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
type
,
@Nullable
@RequestBody
Map
<
String
,
Integer
>
requestBody
)
{
requestBody
=
requestBody
!=
null
&&
!
requestBody
.
isEmpty
()
?
requestBody
:
new
HashMap
<>(
defaultRequestBody
);
requestBody
=
requestBody
!=
null
&&
!
requestBody
.
isEmpty
()
?
requestBody
:
new
HashMap
<>(
defaultRequestBody
);
switch
(
type
)
{
switch
(
type
)
{
case
""
:
syncDataService
.
syncData
(
systemProperties
.
getUserUrl
(),
requestBody
,
"sync_user_data"
);
syncDataService
.
syncData
(
systemProperties
.
getOrgUrl
(),
requestBody
,
"sync_organization_data"
);
break
;
case
"user"
:
case
"user"
:
syncDataService
.
syncData
(
systemProperties
.
getUserUrl
(),
requestBody
,
"sync_user_data"
);
syncDataService
.
syncData
(
systemProperties
.
getUserUrl
(),
requestBody
,
"sync_user_data"
);
break
;
break
;
...
...
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