import request from "@/utils/request";
import axios from "axios";

/*
 * 修改密码
 */
export const changePassword = (data) =>
  request(`/admin/change-password`, { data, method: "put" });

/*
 * 后台登录
 */
export const login = (data) =>
  request("/admin/login", { data, method: "post" });

/*
 * 登出
 */
export const logout = (data) =>
  request(`${AUTH_SERVER}api/sso/signout`, { data, method: "post" });
// {
//   return axios({
//     method: "post",
//     url: `${AUTH_URL}/api/sso/signout`,
//     // responseType: 'stream'
//   }).then(function (response) {
//     //   response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
//   });
// }

//
