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
0dff6d0b
Commit
0dff6d0b
authored
Mar 18, 2021
by
于桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口梳理
parent
3d99e408
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
5 deletions
+65
-5
UserAuthorizedController.java
...tgroup/xyqb/controller/dust/UserAuthorizedController.java
+12
-5
WechatVerifyController.java
.../controller/dust/wechatverify/WechatVerifyController.java
+4
-0
UserController.java
...n/quantgroup/xyqb/controller/external/UserController.java
+33
-0
UserDetailController.java
...tgroup/xyqb/controller/external/UserDetailController.java
+5
-0
WeChatController.java
...quantgroup/xyqb/controller/external/WeChatController.java
+10
-0
InnerController.java
...tgroup/xyqb/controller/internal/user/InnerController.java
+1
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/dust/UserAuthorizedController.java
View file @
0dff6d0b
...
@@ -5,8 +5,6 @@ import cn.quantgroup.xyqb.model.JsonResult;
...
@@ -5,8 +5,6 @@ import cn.quantgroup.xyqb.model.JsonResult;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
cn.quantgroup.xyqb.model.UserAuthorizedParam
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
cn.quantgroup.xyqb.service.auth.IUserAuthorizedService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -23,7 +21,10 @@ public class UserAuthorizedController {
...
@@ -23,7 +21,10 @@ public class UserAuthorizedController {
@Resource
@Resource
private
IUserAuthorizedService
userAuthorizedService
;
private
IUserAuthorizedService
userAuthorizedService
;
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping
(
value
=
"/hasUserAuthorized"
)
@RequestMapping
(
value
=
"/hasUserAuthorized"
)
public
JsonResult
hasUserAuthorized
(
String
idNo
)
{
public
JsonResult
hasUserAuthorized
(
String
idNo
)
{
log
.
info
(
"[hasUserAuthorized]需要校验的用户的身份证号为idNo:{}"
,
idNo
);
log
.
info
(
"[hasUserAuthorized]需要校验的用户的身份证号为idNo:{}"
,
idNo
);
...
@@ -34,7 +35,10 @@ public class UserAuthorizedController {
...
@@ -34,7 +35,10 @@ public class UserAuthorizedController {
}
}
}
}
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping
(
value
=
"/createUserAuthorized"
)
@RequestMapping
(
value
=
"/createUserAuthorized"
)
public
JsonResult
createUserAuthorized
(
UserAuthorizedParam
userAuthorizedParam
)
{
public
JsonResult
createUserAuthorized
(
UserAuthorizedParam
userAuthorizedParam
)
{
log
.
info
(
"[createUserAuthorized]创建实名账户,userAuthorizedParam:{},"
,
userAuthorizedParam
);
log
.
info
(
"[createUserAuthorized]创建实名账户,userAuthorizedParam:{},"
,
userAuthorizedParam
);
...
@@ -54,7 +58,10 @@ public class UserAuthorizedController {
...
@@ -54,7 +58,10 @@ public class UserAuthorizedController {
}
}
}
}
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping
(
value
=
"/getUserAuthorizedId"
)
@RequestMapping
(
value
=
"/getUserAuthorizedId"
)
public
JsonResult
getUserAuthorizedId
(
String
userUuid
)
{
public
JsonResult
getUserAuthorizedId
(
String
userUuid
)
{
log
.
info
(
"[getUserAuthorizedId]获取实名账户的id,userUuid:{}"
,
userUuid
);
log
.
info
(
"[getUserAuthorizedId]获取实名账户的id,userUuid:{}"
,
userUuid
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/dust/wechatverify/WechatVerifyController.java
View file @
0dff6d0b
...
@@ -13,6 +13,10 @@ import java.io.PrintWriter;
...
@@ -13,6 +13,10 @@ import java.io.PrintWriter;
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
public
class
WechatVerifyController
{
public
class
WechatVerifyController
{
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping
(
"/MP_verify_AWiagUn4kZiwmTt0.txt"
)
@RequestMapping
(
"/MP_verify_AWiagUn4kZiwmTt0.txt"
)
public
void
verifyWechat
(
HttpServletResponse
response
)
throws
Exception
{
public
void
verifyWechat
(
HttpServletResponse
response
)
throws
Exception
{
response
.
setContentType
(
"plain/text"
);
response
.
setContentType
(
"plain/text"
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/UserController.java
View file @
0dff6d0b
...
@@ -97,6 +97,7 @@ public class UserController implements IBaseController {
...
@@ -97,6 +97,7 @@ public class UserController implements IBaseController {
* @param request
* @param request
* @param dimension
* @param dimension
* @return
* @return
* @yapi unknown
*/
*/
@LoginInterceptor
@LoginInterceptor
@CaptchaFiniteValidator
@CaptchaFiniteValidator
...
@@ -113,6 +114,10 @@ public class UserController implements IBaseController {
...
@@ -113,6 +114,10 @@ public class UserController implements IBaseController {
}
}
/**
* 慢速登陆
* @yapi http://yapi.quantgroups.com/project/17/interface/api/7310
*/
@PasswordErrorFiniteValidator
@PasswordErrorFiniteValidator
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
public
JsonResult
login
(
public
JsonResult
login
(
...
@@ -147,6 +152,7 @@ public class UserController implements IBaseController {
...
@@ -147,6 +152,7 @@ public class UserController implements IBaseController {
* @param dimension
* @param dimension
* @param request
* @param request
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/1786
*/
*/
@RequestMapping
(
"/login/fastV1"
)
@RequestMapping
(
"/login/fastV1"
)
public
JsonResult
loginFastV1
(
public
JsonResult
loginFastV1
(
...
@@ -161,6 +167,10 @@ public class UserController implements IBaseController {
...
@@ -161,6 +167,10 @@ public class UserController implements IBaseController {
return
loginFast
(
channelId
,
appChannel
,
createdFrom
,
key
,
btRegisterChannelId
,
dimension
,
clickId
,
request
);
return
loginFast
(
channelId
,
appChannel
,
createdFrom
,
key
,
btRegisterChannelId
,
dimension
,
clickId
,
request
);
}
}
/**
* 快速登陆 - 同h5login代码实现一致
* @yapi http://yapi.quantgroups.com/project/17/interface/api/2066
*/
@LoginInterceptor
@LoginInterceptor
@RequestMapping
(
"/login/fast"
)
@RequestMapping
(
"/login/fast"
)
public
JsonResult
loginFast
(
public
JsonResult
loginFast
(
...
@@ -238,6 +248,7 @@ public class UserController implements IBaseController {
...
@@ -238,6 +248,7 @@ public class UserController implements IBaseController {
* @param verificationCode
* @param verificationCode
* @param channelId
* @param channelId
* @return
* @return
* @yapi unknown
*/
*/
@RequestMapping
(
"/register"
)
@RequestMapping
(
"/register"
)
public
JsonResult
register
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
public
JsonResult
register
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
...
@@ -282,9 +293,12 @@ public class UserController implements IBaseController {
...
@@ -282,9 +293,12 @@ public class UserController implements IBaseController {
*
*
* @param phoneNo 手机号
* @param phoneNo 手机号
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/2388
* @Deprecated 20210318
*/
*/
@IpValidator
@IpValidator
@RequestMapping
(
"/exist"
)
@RequestMapping
(
"/exist"
)
@Deprecated
public
JsonResult
exist
(
@RequestParam
String
phoneNo
)
{
public
JsonResult
exist
(
@RequestParam
String
phoneNo
)
{
log
.
info
(
"检查用户是否存在, phoneNo:{}"
,
phoneNo
);
log
.
info
(
"检查用户是否存在, phoneNo:{}"
,
phoneNo
);
if
(
userService
.
exist
(
phoneNo
))
{
if
(
userService
.
exist
(
phoneNo
))
{
...
@@ -299,9 +313,12 @@ public class UserController implements IBaseController {
...
@@ -299,9 +313,12 @@ public class UserController implements IBaseController {
*
*
* @param phoneNo 手机号
* @param phoneNo 手机号
* @return
* @return
* @yapi unknown
* @Deprecated 20210318
*/
*/
@IpValidator
@IpValidator
@RequestMapping
(
"/exist_check"
)
@RequestMapping
(
"/exist_check"
)
@Deprecated
public
JsonResult
existForResetPwd
(
@RequestParam
String
phoneNo
)
{
public
JsonResult
existForResetPwd
(
@RequestParam
String
phoneNo
)
{
log
.
info
(
"检查用户是否存在, phoneNo:{},remoteIp:{}"
,
phoneNo
,
getIp
());
log
.
info
(
"检查用户是否存在, phoneNo:{},remoteIp:{}"
,
phoneNo
,
getIp
());
return
JsonResult
.
buildSuccessResult
(
null
,
userService
.
exist
(
phoneNo
));
return
JsonResult
.
buildSuccessResult
(
null
,
userService
.
exist
(
phoneNo
));
...
@@ -314,6 +331,7 @@ public class UserController implements IBaseController {
...
@@ -314,6 +331,7 @@ public class UserController implements IBaseController {
* @param password
* @param password
* @param verificationCode
* @param verificationCode
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/3263
*/
*/
@RequestMapping
(
"/reset_password"
)
@RequestMapping
(
"/reset_password"
)
public
JsonResult
resetPassword
(
@RequestParam
String
phoneNo
,
public
JsonResult
resetPassword
(
@RequestParam
String
phoneNo
,
...
@@ -347,7 +365,10 @@ public class UserController implements IBaseController {
...
@@ -347,7 +365,10 @@ public class UserController implements IBaseController {
/**
/**
* 重置密码
* 重置密码
* @yapi http://yapi.quantgroups.com/project/17/interface/api/3263
* @Deprecated 20210318, 仅有一次调用2021-03-15 00:38:57.752
*/
*/
@Deprecated
@PasswordFreeAccessValidator
@PasswordFreeAccessValidator
@RequestMapping
(
path
=
"/resetPassword"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/resetPassword"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
resetPassword
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
@RequestParam
(
required
=
false
)
String
passwordNew
)
{
public
JsonResult
resetPassword
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
@RequestParam
(
required
=
false
)
String
passwordNew
)
{
...
@@ -388,6 +409,7 @@ public class UserController implements IBaseController {
...
@@ -388,6 +409,7 @@ public class UserController implements IBaseController {
*
*
* @param token - sid,session的id
* @param token - sid,session的id
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/4012
*/
*/
@IpValidator
@IpValidator
@RequestMapping
(
"/exists_token"
)
@RequestMapping
(
"/exists_token"
)
...
@@ -405,6 +427,10 @@ public class UserController implements IBaseController {
...
@@ -405,6 +427,10 @@ public class UserController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"token valid"
,
exist
);
return
JsonResult
.
buildSuccessResult
(
"token valid"
,
exist
);
}
}
/**
* 获取 token 信息
* @yapi http://yapi.quantgroups.com/project/17/interface/api/9191
*/
@RequestMapping
(
"/token"
)
@RequestMapping
(
"/token"
)
public
JsonResult
token
(
@RequestParam
String
token
)
{
public
JsonResult
token
(
@RequestParam
String
token
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
...
@@ -431,6 +457,7 @@ public class UserController implements IBaseController {
...
@@ -431,6 +457,7 @@ public class UserController implements IBaseController {
* 用户中心首页,显示用户头像、昵称、姓名
* 用户中心首页,显示用户头像、昵称、姓名
*
*
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/267
*/
*/
@PasswordFreeAccessValidator
@PasswordFreeAccessValidator
@RequestMapping
(
"/center/index"
)
@RequestMapping
(
"/center/index"
)
...
@@ -452,6 +479,11 @@ public class UserController implements IBaseController {
...
@@ -452,6 +479,11 @@ public class UserController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
result
);
return
JsonResult
.
buildSuccessResult
(
null
,
result
);
}
}
/**
* @yapi unknown
* @Deprecated 20210318, 20210201-20210203有集中调用274次,其他时间没有
*/
@Deprecated
@RequestMapping
(
"/syncUserInfo"
)
@RequestMapping
(
"/syncUserInfo"
)
public
JsonResult
syncUserInfo
(
HttpServletRequest
request
)
{
public
JsonResult
syncUserInfo
(
HttpServletRequest
request
)
{
log
.
error
(
"[监控][UserController][syncUserInfo] request-Header:{}"
,
JSON
.
toJSONString
(
getRequestHeaderMap
(
request
)));
log
.
error
(
"[监控][UserController][syncUserInfo] request-Header:{}"
,
JSON
.
toJSONString
(
getRequestHeaderMap
(
request
)));
...
@@ -466,6 +498,7 @@ public class UserController implements IBaseController {
...
@@ -466,6 +498,7 @@ public class UserController implements IBaseController {
/**
/**
* 登出接口
* 登出接口
* @yapi http://yapi.quantgroups.com/project/17/interface/api/23661
*/
*/
@RequestMapping
(
value
=
"/logout"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/logout"
,
method
=
RequestMethod
.
GET
)
public
JsonResult
logout
(
HttpServletRequest
request
)
{
public
JsonResult
logout
(
HttpServletRequest
request
)
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/UserDetailController.java
View file @
0dff6d0b
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.internal.user.InnerController
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.entity.UserDetail
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
...
@@ -46,7 +47,11 @@ public class UserDetailController implements IBaseController {
...
@@ -46,7 +47,11 @@ public class UserDetailController implements IBaseController {
* @param idNo
* @param idNo
* @param name
* @param name
* @return
* @return
* @yapi unknown
* @Deprecated 20210318
* @see cn.quantgroup.xyqb.controller.internal.user.InnerController#saveUserDetail(Long, String, String, String, String, String)
*/
*/
@Deprecated
@RequestMapping
(
"/save"
)
@RequestMapping
(
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存/更新用户实名信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存/更新用户实名信息"
)
public
JsonResult
saveUserDetail
(
String
idNo
,
public
JsonResult
saveUserDetail
(
String
idNo
,
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/WeChatController.java
View file @
0dff6d0b
...
@@ -88,7 +88,10 @@ public class WeChatController implements IBaseController {
...
@@ -88,7 +88,10 @@ public class WeChatController implements IBaseController {
*
*
* @param request
* @param request
* @return
* @return
* @yapi unknown
* @Deprecated 20210318
*/
*/
@Deprecated
@RequestMapping
(
"/checkValid"
)
@RequestMapping
(
"/checkValid"
)
public
String
valid
(
HttpServletRequest
request
)
{
public
String
valid
(
HttpServletRequest
request
)
{
String
echoStr
=
request
.
getParameter
(
"echostr"
);
String
echoStr
=
request
.
getParameter
(
"echostr"
);
...
@@ -167,6 +170,7 @@ public class WeChatController implements IBaseController {
...
@@ -167,6 +170,7 @@ public class WeChatController implements IBaseController {
*
*
* @param response
* @param response
* @return
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/14447
*/
*/
@RequestMapping
(
"/receiveCode/extdata/{key}/{extdata}"
)
@RequestMapping
(
"/receiveCode/extdata/{key}/{extdata}"
)
public
void
receiveCodeWithExtData
(
String
code
,
@PathVariable
(
value
=
"key"
)
String
systemKey
,
public
void
receiveCodeWithExtData
(
String
code
,
@PathVariable
(
value
=
"key"
)
String
systemKey
,
...
@@ -275,6 +279,11 @@ public class WeChatController implements IBaseController {
...
@@ -275,6 +279,11 @@ public class WeChatController implements IBaseController {
response
.
setStatus
(
HttpStatus
.
SC_MOVED_PERMANENTLY
);
response
.
setStatus
(
HttpStatus
.
SC_MOVED_PERMANENTLY
);
}
}
/**
* @yapi unknown
* @Deprecated 20210318
*/
@Deprecated
@RequestMapping
(
"/redirectForTest"
)
@RequestMapping
(
"/redirectForTest"
)
public
void
redirectForTest
(
String
redirect
,
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
MalformedURLException
{
public
void
redirectForTest
(
String
redirect
,
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
MalformedURLException
{
URL
url
=
new
URL
(
redirect
);
URL
url
=
new
URL
(
redirect
);
...
@@ -310,6 +319,7 @@ public class WeChatController implements IBaseController {
...
@@ -310,6 +319,7 @@ public class WeChatController implements IBaseController {
*
*
* @param response
* @param response
* @return
* @return
* @yapi unknown
*/
*/
@RequestMapping
(
"/receiveCode/{key}"
)
@RequestMapping
(
"/receiveCode/{key}"
)
public
void
receiveCodeNoRedirect
(
String
code
,
@PathVariable
(
value
=
"key"
)
String
systemKey
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
receiveCodeNoRedirect
(
String
code
,
@PathVariable
(
value
=
"key"
)
String
systemKey
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/InnerController.java
View file @
0dff6d0b
...
@@ -307,6 +307,7 @@ public class InnerController implements IBaseController {
...
@@ -307,6 +307,7 @@ public class InnerController implements IBaseController {
/**
/**
* 保存用户详细信息
* 保存用户详细信息
* 适用于:创建 或 修改
* 适用于:创建 或 修改
* @yapi http://yapi.quantgroups.com/project/17/interface/api/285
*/
*/
@RequestMapping
(
"/user_detail/save"
)
@RequestMapping
(
"/user_detail/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"填写用户详情"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"填写用户详情"
)
...
...
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