Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
c3ecba23
Commit
c3ecba23
authored
Feb 03, 2023
by
ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除用户后更新应用和设备缓存数据
parent
dcda0114
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
UserController.java
...n/java/iot/sixiang/license/controller/UserController.java
+9
-0
No files found.
license/src/main/java/iot/sixiang/license/controller/UserController.java
View file @
c3ecba23
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.Api;
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
iot.sixiang.license.auth.AuthManager
;
import
iot.sixiang.license.device.DeviceManager
;
import
iot.sixiang.license.entity.Permission
;
import
iot.sixiang.license.entity.Permission
;
import
iot.sixiang.license.entity.User
;
import
iot.sixiang.license.entity.User
;
import
iot.sixiang.license.entity.UserPermission
;
import
iot.sixiang.license.entity.UserPermission
;
...
@@ -32,6 +34,7 @@ import iot.sixiang.license.util.EmailUtils;
...
@@ -32,6 +34,7 @@ import iot.sixiang.license.util.EmailUtils;
import
iot.sixiang.license.util.TreeUtil
;
import
iot.sixiang.license.util.TreeUtil
;
import
iot.sixiang.license.xss.XssUtil
;
import
iot.sixiang.license.xss.XssUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.util.DigestUtils
;
import
org.springframework.util.DigestUtils
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.WebDataBinder
;
...
@@ -66,6 +69,10 @@ public class UserController {
...
@@ -66,6 +69,10 @@ public class UserController {
private
ApplyService
applyService
;
private
ApplyService
applyService
;
@Resource
@Resource
private
DeviceService
deviceService
;
private
DeviceService
deviceService
;
@Resource
private
DeviceManager
deviceManager
;
@Resource
private
AuthManager
authManager
;
@Value
(
"${rsa.private_key}"
)
@Value
(
"${rsa.private_key}"
)
private
String
PRIVATE_KRY
;
private
String
PRIVATE_KRY
;
...
@@ -152,6 +159,8 @@ public class UserController {
...
@@ -152,6 +159,8 @@ public class UserController {
applyService
.
deleteByUserId
(
Integer
.
parseInt
(
userId
));
applyService
.
deleteByUserId
(
Integer
.
parseInt
(
userId
));
boolean
res
=
userService
.
deleteUser
(
Integer
.
parseInt
(
userId
));
boolean
res
=
userService
.
deleteUser
(
Integer
.
parseInt
(
userId
));
userPermissionService
.
deleteUserPermission
(
Integer
.
parseInt
(
userId
));
userPermissionService
.
deleteUserPermission
(
Integer
.
parseInt
(
userId
));
deviceManager
.
initDevices
();
authManager
.
initApps
();
UserUtils
.
removeToken
(
userId
);
UserUtils
.
removeToken
(
userId
);
UserUtils
.
removeTokenExp
(
userId
);
UserUtils
.
removeTokenExp
(
userId
);
if
(
res
)
{
if
(
res
)
{
...
...
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