Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
base_platform_enterprise
gic-platform-auth
Commits
8245ffec
Commit
8245ffec
authored
Sep 02, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取授权码
parent
527a4ad5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
AuthCodeDTO.java
...-auth-api/src/main/java/com/gic/auth/dto/AuthCodeDTO.java
+2
-1
AuthCodeController.java
.../java/com/gic/auth/web/controller/AuthCodeController.java
+13
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/AuthCodeDTO.java
View file @
8245ffec
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* tab_sys_auth_code
*/
public
class
AuthCodeDTO
{
public
class
AuthCodeDTO
implements
Serializable
{
/**
*
*/
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AuthCodeController.java
View file @
8245ffec
...
...
@@ -37,4 +37,17 @@ public class AuthCodeController {
ServiceResponse
<
Integer
>
serviceResponse
=
this
.
authCodeApiService
.
saveAuth
(
authCodeDTO
);
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
}
@RequestMapping
(
"expire-auth-code"
)
public
RestResponse
expireAuthCode
(
Integer
authCodeId
){
ServiceResponse
<
Integer
>
serviceResponse
=
this
.
authCodeApiService
.
expireAuthCode
(
authCodeId
);
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
}
@RequestMapping
(
"get-auth-code"
)
public
RestResponse
getAuthCode
(
Integer
eid
){
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
ServiceResponse
<
AuthCodeDTO
>
authCode
=
this
.
authCodeApiService
.
getAuthCode
(
enterpriseId
,
eid
);
return
RestResponse
.
success
(
authCode
.
getResult
());
}
}
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