Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-mobile
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
901ea9ad
authored
Sep 19, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重置账户绑定的微信信息
parent
71a2047c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/api/user/UserMController.java
src/main/java/com/ctrip/fun/golf/service/user/UserMService.java
src/main/resources/rpc.properties
src/main/java/com/ctrip/fun/golf/api/user/UserMController.java
View file @
901ea9ad
...
@@ -555,6 +555,19 @@ public class UserMController {
...
@@ -555,6 +555,19 @@ public class UserMController {
}
}
/**
/**
* 重置当前账户绑定的微信信息
*
* @param registerBean
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"/v1/users/resetMiniOpenid"
,
method
=
RequestMethod
.
POST
)
@Security
(
index
=
1
,
field
=
"token"
)
public
Object
resetMiniOpenid
(
@RequestBody
ChangePasswordBean
changePasswordBean
)
{
return
userMService
.
resetMiniOpenid
(
changePasswordBean
);
}
/**
* 用户详情
* 用户详情
*
*
* @param UserQuery
* @param UserQuery
...
...
src/main/java/com/ctrip/fun/golf/service/user/UserMService.java
View file @
901ea9ad
...
@@ -447,6 +447,24 @@ public class UserMService extends BaseService {
...
@@ -447,6 +447,24 @@ public class UserMService extends BaseService {
}
}
public
Response
<
String
>
resetMiniOpenid
(
ChangePasswordBean
changePasswordBean
)
{
Request
<
ChangePasswordBean
>
request
=
new
Request
<
ChangePasswordBean
>(
""
,
changePasswordBean
);
HttpEntity
<
Request
<
ChangePasswordBean
>>
entity
=
new
HttpEntity
<
Request
<
ChangePasswordBean
>>(
request
);
Response
<
String
>
response
=
super
.
exchange
(
this
.
getServiceUri
(
"uri.user.resetMiniOpenid"
),
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
String
>>()
{
}).
getBody
();
if
(
response
.
getStatus
()
==
0
)
{
return
response
;
}
else
{
logger
.
error
(
"[list] status:{}, msg: {}"
,
response
.
getStatus
(),
response
.
getMessage
());
throw
new
RestException
(
500
,
response
.
getMessage
());
}
}
/*
/*
* 保存被推荐码(0--成功 -1:推荐码不存在 -2:当前用户信息不全 -3:保存推荐码失败 -4:不能使用自己的推荐码 -5:当前用户已使用过推荐码)
* 保存被推荐码(0--成功 -1:推荐码不存在 -2:当前用户信息不全 -3:保存推荐码失败 -4:不能使用自己的推荐码 -5:当前用户已使用过推荐码)
*/
*/
...
...
src/main/resources/rpc.properties
View file @
901ea9ad
...
@@ -84,6 +84,7 @@ uri.user.changeUserInfo=/fun-golf-service/user/changeUserInfo
...
@@ -84,6 +84,7 @@ uri.user.changeUserInfo=/fun-golf-service/user/changeUserInfo
uri.user.sendResetPwdVerifyCode
=
/fun-golf-service/user/sendResetPwdVerifyCode
uri.user.sendResetPwdVerifyCode
=
/fun-golf-service/user/sendResetPwdVerifyCode
uri.user.validateResetPwdCode
=
/fun-golf-service/user/validateResetPwdCode
uri.user.validateResetPwdCode
=
/fun-golf-service/user/validateResetPwdCode
uri.user.resetPassord
=
/fun-golf-service/user/resetPassord
uri.user.resetPassord
=
/fun-golf-service/user/resetPassord
uri.user.resetMiniOpenid
=
/fun-golf-service/user/resetMiniOpenid
uri.user.sendDynamicPassword
=
/fun-golf-service/user/sendDynamicPassword
uri.user.sendDynamicPassword
=
/fun-golf-service/user/sendDynamicPassword
uri.user.loginByDynamicPassword
=
/fun-golf-service/user/loginByDynamicPassword
uri.user.loginByDynamicPassword
=
/fun-golf-service/user/loginByDynamicPassword
uri.user.validateWeChatUser
=
/fun-golf-service/user/validateWeChatUser
uri.user.validateWeChatUser
=
/fun-golf-service/user/validateWeChatUser
...
...
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