Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-auth-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a95fb2b
authored
Mar 24, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增移动端支持
1 parent
cd83f84c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
src/main/java/cn/com/glsx/auth/api/AuthFeignClient.java
src/main/java/cn/com/glsx/auth/model/SimpleUser.java
src/main/java/cn/com/glsx/auth/model/SyntheticUser.java
src/main/java/cn/com/glsx/auth/api/AuthFeignClient.java
View file @
0a95fb2
package
cn
.
com
.
glsx
.
auth
.
api
;
import
cn.com.glsx.auth.model.MenuPermission
;
import
cn.com.glsx.auth.model.SimpleUser
;
import
cn.com.glsx.auth.model.SyntheticUser
;
import
com.glsx.plat.core.web.R
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -18,6 +19,14 @@ import java.util.Set;
public
interface
AuthFeignClient
{
/**
* 内部登录
*
* @return
*/
@GetMapping
(
value
=
"/login"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
SimpleUser
>
login
(
@RequestParam
(
"account"
)
String
account
,
@RequestParam
(
"password"
)
String
password
);
/**
* 嗅探token是否有效(走feign不走网关,走网关网关直接验证了,当需要判断token状态是否有效,可能会使用此接口)
*
* @return
...
...
src/main/java/cn/com/glsx/auth/model/SimpleUser.java
0 → 100644
View file @
0a95fb2
package
cn
.
com
.
glsx
.
auth
.
model
;
import
lombok.Data
;
@Data
public
class
SimpleUser
{
private
Long
id
;
private
String
account
;
private
String
username
;
}
src/main/java/cn/com/glsx/auth/model/SyntheticUser.java
View file @
0a95fb2
...
...
@@ -14,6 +14,7 @@ public class SyntheticUser {
* 用户账号
*/
private
String
account
;
/**
* 用户名称
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment