// 管理员模块

// 登录
export const login = {
  url: '/homePage/login',
  method: 'POST',
  dealReqData: ({ account, password, rand, ticket, userIp }) => {
    return { account, password, rand, ticket, userIp }
  }
}

// 重置密码
export const resetPwd = {
  url: '/homePage/resetPwd',
  method: 'PUT',
  dealReqData: ({ phone, token, newPwd, newPwd2 }) => {
    return { phone, token, newPwd, newPwd2 }
  }
}
// 退出
export const logout = {
  url: '/homePage/logout',
  method: 'POST'
}

// 修改密码
// export const updateAdminPwd = {
//     url: '/admin/common/updatePwd',
//     method: 'POST',
//     dealReqData: ({ pwd, newPwd, newPwd2 }) => {
//         return { pwd, newPwd, newPwd2 }
//     }
// }

// 获取管理员权限
export const getAdminPermission = {
  url: '/homePage/getAdminAuthMenu',
  method: 'GET'
}
