Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
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
head_group
xyqb-user2
Commits
87deaeb0
Commit
87deaeb0
authored
May 10, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化swagger格式
parent
7f026ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
UserApiController.java
...roup/xyqb/controller/external/user/UserApiController.java
+1
-4
TestStringCode.java
src/test/java/login/TestStringCode.java
+2
-2
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/UserApiController.java
View file @
87deaeb0
...
...
@@ -11,7 +11,6 @@ import cn.quantgroup.xyqb.service.session.ISessionService;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -27,7 +26,6 @@ import java.util.Objects;
* Created by FrankChow on 15/12/16.
*/
@Slf4j
@Api
@RestController
@RequestMapping
(
"/api"
)
public
class
UserApiController
{
...
...
@@ -84,8 +82,7 @@ public class UserApiController {
* @param prolong - 是否延续生命期,可选参数,默认为: false - 不延续
* @return
*/
@ApiOperation
(
notes
=
"检查token是否有效,如果有效,可选择是否延续生命期(延续后有效期24Hour)"
,
value
=
"Check token and then prolong session"
,
nickname
=
"checkToken"
,
tags
=
{
"UserCenter-API"
}
)
@ApiOperation
(
notes
=
"检查token是否有效,如果有效,可选择是否延续生命期(延续后有效期24Hour)"
,
value
=
"Check token and then prolong session"
,
nickname
=
"checkToken"
)
@LogHttpCaller
@IpValidator
@RequestMapping
(
value
=
"/valid/{token}"
,
method
=
RequestMethod
.
POST
)
...
...
src/test/java/login/TestStringCode.java
View file @
87deaeb0
...
...
@@ -6,8 +6,8 @@ import java.util.Base64;
public
class
TestStringCode
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
ap_base64
(
"1
3511112222"
,
"000000
"
));
System
.
out
.
println
(
pc_base64
(
"1
5566660006
"
,
"0000"
));
System
.
out
.
println
(
ap_base64
(
"1
8510236666"
,
"123456
"
));
System
.
out
.
println
(
pc_base64
(
"1
8222288391
"
,
"0000"
));
}
final
static
String
AUTHORIZATION
=
"authorization"
;
...
...
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