|
|
@@ -1,7 +1,5 @@
|
|
|
package com.zhongshu.card.server.core.controller.user;
|
|
|
|
|
|
-import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
-import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.model.base.ProjectOidParam;
|
|
|
import com.zhongshu.card.client.model.forgotPassword.ForgotPasswordParam;
|
|
|
@@ -32,14 +30,12 @@ public class ForgotPassWordController {
|
|
|
@Autowired
|
|
|
private ForgotPassWordService forgotPassWordService;
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "验证用户(通过电话号码和身份证)", description = "验证用户")
|
|
|
@RequestMapping(value = {"verifyUserExitByPhone"}, method = {RequestMethod.POST})
|
|
|
public ResultContent<ValidateUserModel> verifyUserExitByPhone(@RequestBody ValidateUserParam param) {
|
|
|
return forgotPassWordService.verifyUserExitByPhone(param);
|
|
|
}
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@RequestMapping(value = "verifyUserExitByImage", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, method = RequestMethod.POST)
|
|
|
@Operation(summary = "用人脸图片判断用户是否存在", description = "用人脸图片判断用户是否存在")
|
|
|
public ResultContent verifyUserExitByImage(
|
|
|
@@ -51,7 +47,6 @@ public class ForgotPassWordController {
|
|
|
return forgotPassWordService.verifyUserExitByImage(file);
|
|
|
}
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "重置密码", description = "验证用户")
|
|
|
@RequestMapping(value = {"resetPassword"}, method = {RequestMethod.POST})
|
|
|
public ResultContent resetPassword(@RequestBody ForgotPasswordParam param) {
|