import {request} from '@/service/ajax'

const newsUrl = '/api/'
// 登陆
export const login = (data) => request(newsUrl + 'login', 'post', { ...data },false,true)
//微信登陆
export const wxLogin = (data) => request(newsUrl + 'wx-login', 'post', { ...data },true,true)
export const register = (data) => request(newsUrl + 'register', 'post', { ...data },true,true)
export const retrievePassword = (data) => request(newsUrl + 'retrieve', 'post', { ...data },false,true)
