Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
d35d7530
Commit
d35d7530
authored
Dec 08, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三方token获取提交(重庆)
parent
282a8582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
service/publicapi/src/main/java/com/founder/publicapi/controller/cqTokenService/CqTokenController.java
+7
-2
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/cqTokenService/CqTokenController.java
View file @
d35d7530
...
...
@@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.Map
;
@Api
(
tags
=
"刑侦服务token"
)
...
...
@@ -36,7 +38,7 @@ public class CqTokenController {
private
JwtUser
jwtUser
=
new
JwtUser
();
@PostMapping
(
"getThirdToken"
)
@ApiOperation
(
value
=
"获取
三方
token"
)
@ApiOperation
(
value
=
"获取token"
)
public
MapRestResult
getThirdToken
(
@RequestBody
TokenThirdParams
tokenThirdParams
)
{
String
token
=
null
;
QueryWrapper
queryWrapper
=
new
QueryWrapper
();
...
...
@@ -60,6 +62,9 @@ public class CqTokenController {
return
new
MapRestResult
(
201
,
"error"
,
1
,
"token获取失败!"
);
}
}
return
new
MapRestResult
(
200
,
"OK"
,
1
,
token
);
Map
mapResult
=
new
HashMap
();
mapResult
.
put
(
"token"
,
token
);
mapResult
.
put
(
"expire"
,
"86400"
);
return
new
MapRestResult
(
200
,
"OK"
,
1
,
mapResult
);
}
}
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