|
|
@@ -7,11 +7,13 @@ import jp.yamoto.farm.common.core.domain.model.LoginBody;
|
|
|
import jp.yamoto.farm.common.core.domain.model.LoginUser;
|
|
|
import jp.yamoto.farm.common.utils.SecurityUtils;
|
|
|
import jp.yamoto.farm.sankin.biz.auth.domain.AuthReSendVerifyCodeBo;
|
|
|
-import jp.yamoto.farm.sankin.biz.auth.domain.AuthSecondVerifyBo;
|
|
|
import jp.yamoto.farm.sankin.biz.auth.domain.AuthResetPwdBo;
|
|
|
+import jp.yamoto.farm.sankin.biz.auth.domain.AuthSecondVerifyBo;
|
|
|
import jp.yamoto.farm.sankin.biz.auth.domain.AuthSendVerifyCodeBo;
|
|
|
import jp.yamoto.farm.sankin.biz.auth.service.AuthService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -26,6 +28,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
@RequestMapping("/api/auth")
|
|
|
public class AuthController
|
|
|
{
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(AuthController.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private AuthService authService;
|
|
|
|
|
|
@@ -83,6 +87,10 @@ public class AuthController
|
|
|
*/
|
|
|
@GetMapping("userInfo")
|
|
|
public AjaxResult getInfo() {
|
|
|
+
|
|
|
+ log.error("error test userinfo");
|
|
|
+ log.info("info test user");
|
|
|
+ log.warn("warn test user");
|
|
|
LoginUser<FarmerUserInfo> loginUser = SecurityUtils.getLoginUser();
|
|
|
FarmerUserInfo user = loginUser.getUser();
|
|
|
|