Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
a133ae3e
Commit
a133ae3e
authored
Sep 17, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a1e5dc9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+14
-0
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+2
-0
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+5
-0
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
a133ae3e
...
@@ -171,6 +171,20 @@ public class UserController {
...
@@ -171,6 +171,20 @@ public class UserController {
return
userService
.
sendSms
(
params
);
return
userService
.
sendSms
(
params
);
}
}
@ApiOperation
(
"小程序登陆"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"openId"
,
dataType
=
"String"
,
required
=
false
,
value
=
"OPENID"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@RequestMapping
(
value
=
"/logoutByOpenId"
,
method
=
RequestMethod
.
POST
)
public
String
logoutByOpenId
(
String
openId
,
String
langID
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
userService
.
deleteOpenId
(
openId
);
return
Rjx
.
jsonOk
().
toJson
();
}
@ApiOperation
(
"小程序登陆"
)
@ApiOperation
(
"小程序登陆"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"openId"
,
dataType
=
"String"
,
required
=
false
,
value
=
"OPENID"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"openId"
,
dataType
=
"String"
,
required
=
false
,
value
=
"OPENID"
,
defaultValue
=
""
),
...
...
src/main/java/com/egolm/shop/service/UserService.java
View file @
a133ae3e
...
@@ -37,4 +37,6 @@ public interface UserService {
...
@@ -37,4 +37,6 @@ public interface UserService {
public
TCustomer
getCustomerByOpenId
(
String
openId
);
public
TCustomer
getCustomerByOpenId
(
String
openId
);
public
void
deleteOpenId
(
String
openId
);
}
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
a133ae3e
...
@@ -561,4 +561,9 @@ public class UserServiceImpl implements UserService {
...
@@ -561,4 +561,9 @@ public class UserServiceImpl implements UserService {
}
}
}
}
@Override
public
void
deleteOpenId
(
String
openId
)
{
jdbcTemplate
.
update
(
"update tCustomer set sOpenID = ? where sOpenID = ?"
,
null
,
openId
);
}
}
}
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