Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
aaceffd8
Commit
aaceffd8
authored
Jun 16, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户接口
parent
ad402e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
.../java/com/mortals/xhx/module/user/web/UserController.java
+13
-0
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
View file @
aaceffd8
...
...
@@ -357,4 +357,17 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
return
Rest
.
fail
(
"初始化用户数据异常!"
);
}
}
@PostMapping
(
value
=
"gust"
)
@UnAuth
public
Rest
<
String
>
guestUser
(
@RequestBody
UserEntity
user
)
{
try
{
service
.
save
(
user
);
return
Rest
.
ok
(
"添加用户成功!"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"添加用户错误"
,
e
);
return
Rest
.
fail
(
"添加用户异常!"
);
}
}
}
\ No newline at end of file
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