Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
f9ce7555
Commit
f9ce7555
authored
Jul 27, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加获取用户信息的接口
parent
00ab32e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
api-server/src/main/java/com/zq/api/service/IApiLogic.java
+7
-0
api-server/src/main/java/com/zq/api/service/impl/ApiV100Logic.java
+7
-0
No files found.
api-server/src/main/java/com/zq/api/service/IApiLogic.java
View file @
f9ce7555
...
...
@@ -11,6 +11,13 @@ import com.zq.api.form.ApiResp;
public
interface
IApiLogic
extends
IApiCommon
{
/**
* 获取用户信息
*
* @return
*/
ApiResp
getUserInfo
(
ApiForm
form
);
/**
* 发送验证码
*
* @param form
...
...
api-server/src/main/java/com/zq/api/service/impl/ApiV100Logic.java
View file @
f9ce7555
...
...
@@ -6,6 +6,8 @@ import com.zq.api.form.ApiForm;
import
com.zq.api.form.ApiResp
;
import
com.zq.api.service.IApiLogic
;
import
com.zq.api.utils.ApiUtils
;
import
com.zq.common.config.security.ApiTokenUtils
;
import
com.zq.common.vo.ResultVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -18,6 +20,11 @@ public class ApiV100Logic extends BaseApiLogic implements IApiLogic {
private
PortalFeign
portalFeign
;
@Override
public
ApiResp
getUserInfo
(
ApiForm
form
)
{
return
ApiUtils
.
toApiResp
(
form
,
ResultVo
.
success
(
ApiTokenUtils
.
getAppTokenVo
(
form
.
getToken
())));
}
@Override
public
ApiResp
sendCode
(
ApiForm
form
)
{
return
ApiUtils
.
toApiResp
(
form
,
userFeign
.
sendCode
(
form
.
get
(
"phone"
)));
}
...
...
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