ww
chengqf 2 years ago
parent 6c1116f7e5
commit 9f9483fbe5

@ -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));
}
}

Loading…
Cancel
Save