package link.at17.mid.tushare.web.controller;

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 link.at17.mid.tushare.web.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();
    }
}