package com.wyz.demo.service;


import com.wyz.demo.dto.UserDTO;
import com.wyz.demo.vo.Message;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;


public interface UserService {
    /**
     * 添加用户
     * @param userDTO
     * @return
     */
    public Message addUser(UserDTO userDTO, HttpServletResponse resp, HttpSession sess);


    /**
     * 检查用户是否可以登录
     * @return
     */
    public Message checkUser(UserDTO userDTO, HttpServletResponse resp, HttpSession sess);

    /**
     * 检查用户是否已经登录(检查session)
     */
    public Message checkStatus(HttpSession sess);

}


