Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
c3d039f5
Commit
c3d039f5
authored
May 08, 2021
by
杨清松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
司机备案修改密码接口
parent
15ee9963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
DriverUserController.java
.../java/com/beecode/inz/basis/web/DriverUserController.java
+24
-0
No files found.
backend/inz.basis/src/main/java/com/beecode/inz/basis/web/DriverUserController.java
View file @
c3d039f5
package
com
.
beecode
.
inz
.
basis
.
web
;
package
com
.
beecode
.
inz
.
basis
.
web
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.pojo.DriverUser
;
import
com.beecode.inz.basis.pojo.DriverUser
;
import
com.beecode.inz.basis.service.DriverUserService
;
import
com.beecode.inz.basis.service.DriverUserService
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
...
@@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.UUID
;
/**
/**
...
@@ -180,4 +182,26 @@ public class DriverUserController {
...
@@ -180,4 +182,26 @@ public class DriverUserController {
}
}
}
}
/**
* 购砂用户更改密码
*
* @param obj
* @return
*/
@RequestMapping
(
value
=
"/driverUser/updatePassword"
,
method
=
RequestMethod
.
POST
)
public
Object
updatePassword
(
@RequestBody
String
content
)
{
Map
<
String
,
Object
>
map
=
JSONObjectUtils
.
toMap
(
content
);
if
(
null
==
map
||
map
.
size
()
==
0
)
return
ResponseObj
.
error
(
"参数为空"
);;
String
userId
=
map
.
get
(
"userId"
).
toString
();
String
password
=
map
.
get
(
"password"
).
toString
();
try
{
driverUserService
.
updatePassword
(
UUID
.
fromString
(
userId
),
password
);
return
ResponseObj
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseObj
.
error
();
}
}
}
}
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