Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
202114c6
Commit
202114c6
authored
Jun 01, 2020
by
xiaozhe.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服系统对接中台接口,用户修改、修改密码、修改账户状态
parent
1077d294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
UserRest.java
src/main/java/cn/quantgroup/customer/rest/UserRest.java
+7
-11
No files found.
src/main/java/cn/quantgroup/customer/rest/UserRest.java
View file @
202114c6
...
...
@@ -15,11 +15,9 @@ import cn.quantgroup.customer.service.IUserService;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Required
;
import
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.validation.Valid
;
...
...
@@ -150,10 +148,7 @@ public class UserRest {
* @return
*/
@PostMapping
(
value
=
"/pwd/reset"
)
public
JsonResult
passwordReset
(
String
phoneNo
)
{
if
(
StringUtils
.
isEmpty
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
ErrorCodeEnum
.
PARAM_ERROR
.
getMessage
(),
ErrorCodeEnum
.
PARAM_ERROR
.
getCode
());
}
public
JsonResult
passwordReset
(
@RequestParam
(
required
=
true
)
String
phoneNo
)
{
String
response
=
userService
.
passwordRest
(
phoneNo
);
return
GSON
.
fromJson
(
response
,
JsonResult
.
class
);
}
...
...
@@ -163,9 +158,10 @@ public class UserRest {
*
* @return
*/
@PostMapping
(
value
=
"/modify/account/status"
)
public
JsonResult
modifyAccountStatus
()
{
return
JsonResult
.
buildSuccessResult
(
"success"
,
null
);
@PostMapping
(
value
=
"/modify/account/status/disable"
)
public
JsonResult
modifyAccountStatusDisable
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
String
response
=
userService
.
modifyAccountStatusDisable
(
userId
);
return
GSON
.
fromJson
(
response
,
JsonResult
.
class
);
}
...
...
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