import request from "@/api/netRequest";
import QS from 'qs'
// export const login = (username, password) => {
//     return request({
//         url: '/auth/login',
//         method: 'post',
//         headers:{
//             "Content-Type": "application/x-www-form-urlencoded",
//         },
//         data: QS.stringify({
//             username: username,
//             password: password
//         })
//     })
// }
export const login = (username, password) => {
    return request({
        url: '/api/check/login',
        method: 'post',
        data: {
            Account: username,
            AppKey: "openauth",
            Password: password
        }
    })
}
// export const loginout = () => {
//     return request({
//         url: '/auth/logout',
//         method: 'post',
//     })
// }
export const loginout = () => {
    return request({
        url: '/api/Check/Logout',
        method: 'post',
    })
}