package me.qwq.doghouse.controller.common;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import me.qwq.doghouse.util.SessionUtils;

@Controller
public abstract class BaseController {

    @Autowired
    protected HttpServletRequest request;
    
    @Autowired
    protected HttpServletResponse response;
    
    @Autowired
    protected HttpSession session;
    
    protected Boolean isLogin() {
        return SessionUtils.isLogin(session);
    }
}
