Commit 0dff6d0b authored by 于桐's avatar 于桐

接口梳理

parent 3d99e408
......@@ -5,8 +5,6 @@ import cn.quantgroup.xyqb.model.JsonResult;
import cn.quantgroup.xyqb.model.UserAuthorizedParam;
import cn.quantgroup.xyqb.service.auth.IUserAuthorizedService;
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.RestController;
......@@ -23,7 +21,10 @@ public class UserAuthorizedController {
@Resource
private IUserAuthorizedService userAuthorizedService;
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping(value = "/hasUserAuthorized")
public JsonResult hasUserAuthorized(String idNo) {
log.info("[hasUserAuthorized]需要校验的用户的身份证号为idNo:{}", idNo);
......@@ -34,7 +35,10 @@ public class UserAuthorizedController {
}
}
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping(value = "/createUserAuthorized")
public JsonResult createUserAuthorized(UserAuthorizedParam userAuthorizedParam) {
log.info("[createUserAuthorized]创建实名账户,userAuthorizedParam:{},", userAuthorizedParam);
......@@ -54,7 +58,10 @@ public class UserAuthorizedController {
}
}
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping(value = "/getUserAuthorizedId")
public JsonResult getUserAuthorizedId(String userUuid) {
log.info("[getUserAuthorizedId]获取实名账户的id,userUuid:{}", userUuid);
......
......@@ -13,6 +13,10 @@ import java.io.PrintWriter;
@RequestMapping("/")
public class WechatVerifyController {
/**
* @Deprecated 20210317
*/
@Deprecated
@RequestMapping("/MP_verify_AWiagUn4kZiwmTt0.txt")
public void verifyWechat(HttpServletResponse response) throws Exception {
response.setContentType("plain/text");
......
......@@ -97,6 +97,7 @@ public class UserController implements IBaseController {
* @param request
* @param dimension
* @return
* @yapi unknown
*/
@LoginInterceptor
@CaptchaFiniteValidator
......@@ -113,6 +114,10 @@ public class UserController implements IBaseController {
}
/**
* 慢速登陆
* @yapi http://yapi.quantgroups.com/project/17/interface/api/7310
*/
@PasswordErrorFiniteValidator
@RequestMapping("/login")
public JsonResult login(
......@@ -147,6 +152,7 @@ public class UserController implements IBaseController {
* @param dimension
* @param request
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/1786
*/
@RequestMapping("/login/fastV1")
public JsonResult loginFastV1(
......@@ -161,6 +167,10 @@ public class UserController implements IBaseController {
return loginFast(channelId, appChannel, createdFrom, key, btRegisterChannelId, dimension, clickId, request);
}
/**
* 快速登陆 - 同h5login代码实现一致
* @yapi http://yapi.quantgroups.com/project/17/interface/api/2066
*/
@LoginInterceptor
@RequestMapping("/login/fast")
public JsonResult loginFast(
......@@ -238,6 +248,7 @@ public class UserController implements IBaseController {
* @param verificationCode
* @param channelId
* @return
* @yapi unknown
*/
@RequestMapping("/register")
public JsonResult register(@RequestParam String phoneNo, @RequestParam String password,
......@@ -282,9 +293,12 @@ public class UserController implements IBaseController {
*
* @param phoneNo 手机号
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/2388
* @Deprecated 20210318
*/
@IpValidator
@RequestMapping("/exist")
@Deprecated
public JsonResult exist(@RequestParam String phoneNo) {
log.info("检查用户是否存在, phoneNo:{}", phoneNo);
if (userService.exist(phoneNo)) {
......@@ -299,9 +313,12 @@ public class UserController implements IBaseController {
*
* @param phoneNo 手机号
* @return
* @yapi unknown
* @Deprecated 20210318
*/
@IpValidator
@RequestMapping("/exist_check")
@Deprecated
public JsonResult existForResetPwd(@RequestParam String phoneNo) {
log.info("检查用户是否存在, phoneNo:{},remoteIp:{}", phoneNo, getIp());
return JsonResult.buildSuccessResult(null, userService.exist(phoneNo));
......@@ -314,6 +331,7 @@ public class UserController implements IBaseController {
* @param password
* @param verificationCode
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/3263
*/
@RequestMapping("/reset_password")
public JsonResult resetPassword(@RequestParam String phoneNo,
......@@ -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
@RequestMapping(path = "/resetPassword", method = RequestMethod.POST)
public JsonResult resetPassword(@RequestParam String phoneNo, @RequestParam String password, @RequestParam(required = false) String passwordNew) {
......@@ -388,6 +409,7 @@ public class UserController implements IBaseController {
*
* @param token - sid,session的id
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/4012
*/
@IpValidator
@RequestMapping("/exists_token")
......@@ -405,6 +427,10 @@ public class UserController implements IBaseController {
return JsonResult.buildSuccessResult("token valid", exist);
}
/**
* 获取 token 信息
* @yapi http://yapi.quantgroups.com/project/17/interface/api/9191
*/
@RequestMapping("/token")
public JsonResult token(@RequestParam String token) {
Map<String, Object> result = new HashMap<>();
......@@ -431,6 +457,7 @@ public class UserController implements IBaseController {
* 用户中心首页,显示用户头像、昵称、姓名
*
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/267
*/
@PasswordFreeAccessValidator
@RequestMapping("/center/index")
......@@ -452,6 +479,11 @@ public class UserController implements IBaseController {
return JsonResult.buildSuccessResult(null, result);
}
/**
* @yapi unknown
* @Deprecated 20210318, 20210201-20210203有集中调用274次,其他时间没有
*/
@Deprecated
@RequestMapping("/syncUserInfo")
public JsonResult syncUserInfo(HttpServletRequest request) {
log.error("[监控][UserController][syncUserInfo] request-Header:{}", JSON.toJSONString(getRequestHeaderMap(request)));
......@@ -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)
public JsonResult logout(HttpServletRequest request) {
......
package cn.quantgroup.xyqb.controller.external;
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.UserDetail;
import cn.quantgroup.xyqb.model.IdCardInfo;
......@@ -46,7 +47,11 @@ public class UserDetailController implements IBaseController {
* @param idNo
* @param name
* @return
* @yapi unknown
* @Deprecated 20210318
* @see cn.quantgroup.xyqb.controller.internal.user.InnerController#saveUserDetail(Long, String, String, String, String, String)
*/
@Deprecated
@RequestMapping("/save")
@ApiOperation(httpMethod = "POST", value = "保存/更新用户实名信息")
public JsonResult saveUserDetail(String idNo,
......
......@@ -88,7 +88,10 @@ public class WeChatController implements IBaseController {
*
* @param request
* @return
* @yapi unknown
* @Deprecated 20210318
*/
@Deprecated
@RequestMapping("/checkValid")
public String valid(HttpServletRequest request) {
String echoStr = request.getParameter("echostr");
......@@ -167,6 +170,7 @@ public class WeChatController implements IBaseController {
*
* @param response
* @return
* @yapi http://yapi.quantgroups.com/project/17/interface/api/14447
*/
@RequestMapping("/receiveCode/extdata/{key}/{extdata}")
public void receiveCodeWithExtData(String code, @PathVariable(value = "key") String systemKey,
......@@ -275,6 +279,11 @@ public class WeChatController implements IBaseController {
response.setStatus(HttpStatus.SC_MOVED_PERMANENTLY);
}
/**
* @yapi unknown
* @Deprecated 20210318
*/
@Deprecated
@RequestMapping("/redirectForTest")
public void redirectForTest(String redirect, HttpServletRequest request, HttpServletResponse response) throws MalformedURLException {
URL url = new URL(redirect);
......@@ -310,6 +319,7 @@ public class WeChatController implements IBaseController {
*
* @param response
* @return
* @yapi unknown
*/
@RequestMapping("/receiveCode/{key}")
public void receiveCodeNoRedirect(String code, @PathVariable(value = "key") String systemKey, HttpServletRequest request, HttpServletResponse response) {
......
......@@ -307,6 +307,7 @@ public class InnerController implements IBaseController {
/**
* 保存用户详细信息
* 适用于:创建 或 修改
* @yapi http://yapi.quantgroups.com/project/17/interface/api/285
*/
@RequestMapping("/user_detail/save")
@ApiOperation(httpMethod = "POST", value = "填写用户详情")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment