验证码
parent
c8695dfb2d
commit
f061c8d737
@ -0,0 +1,27 @@
|
|||||||
|
package com.glxp.api.controller.auth;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpSession;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.glxp.api.common.res.BaseResponse;
|
||||||
|
import com.glxp.api.util.CaptchaUtils;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@Slf4j
|
||||||
|
public class RegisterController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/admin/auth/register/getCheckcode")
|
||||||
|
public BaseResponse getCheckcode(@RequestBody Map<String,Object> params, HttpSession httpSession) {
|
||||||
|
return CaptchaUtils.checkCode(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue