import request from "@/utils/request";
//登录
const login=(name,pwd)=>{
    return request({
        url: `/session/login`,
        method: "post",
      data: {
        username: name,
        password:pwd
        }
      });
}
//登出
const logout=()=>{
    return request({
        url: `/session/logout`,
        method: "post",
      data: {
        
        
        }
      });
}


export default {
login,logout
}