diff --git a/src/main/java/com/glxp/api/controller/auth/RegisterController.java b/src/main/java/com/glxp/api/controller/auth/RegisterController.java index 05a9473..72dd086 100644 --- a/src/main/java/com/glxp/api/controller/auth/RegisterController.java +++ b/src/main/java/com/glxp/api/controller/auth/RegisterController.java @@ -21,6 +21,7 @@ import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; import com.glxp.api.entity.auth.UserRegisterEntity; +import com.glxp.api.req.auth.UserResisterFilterRequest; import com.glxp.api.service.auth.UserRegisterService; import com.glxp.api.util.CaptchaUtils; @@ -98,6 +99,12 @@ public class RegisterController { return ResultVOUtils.success(); } - + @GetMapping("/admin/auth/register/list") + public BaseResponse list(UserResisterFilterRequest userResisterFilterRequest, BindingResult bindingResult) { + if (bindingResult.hasErrors()) { + return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); + } + return ResultVOUtils.success(userRegisterService.filterUserRegisters(userResisterFilterRequest)); + } }