This commit is contained in:
zhangchenbiao
2023-06-09 10:29:19 +08:00
parent 7734a4fbcc
commit b8d6917359

View File

@@ -12,6 +12,7 @@ import com.cool.store.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@@ -56,7 +57,7 @@ public class LoginController {
}
}
@PostMapping("/getUserInfoByToken")
@GetMapping("/getUserInfoByToken")
public ResponseResult getUserInfoByToken(){
return ResponseResult.success(CurrentUserContext.getUser());
}