30 lines
724 B
Java
30 lines
724 B
Java
package quant.rich.emoney.controller.common;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
import jakarta.servlet.http.HttpSession;
|
|
import quant.rich.emoney.service.AuthService;
|
|
|
|
@Controller
|
|
public abstract class BaseController {
|
|
|
|
@Autowired
|
|
protected HttpServletRequest request;
|
|
|
|
@Autowired
|
|
protected HttpServletResponse response;
|
|
|
|
@Autowired
|
|
protected HttpSession session;
|
|
|
|
@Autowired
|
|
AuthService authService;
|
|
|
|
protected Boolean isLogin() {
|
|
return authService.isLogin();
|
|
}
|
|
}
|