import request from '@/utils/request' export function login(data) { return request({ url: '/yp/user/login', method: 'post', data }) } export function getInfo(token) { return request({ url: '/yp/user/info', method: 'get', params: { token } }) } export function logout() { return request({ url: '/yp/user/logout', method: 'post' }) } export function fetchList(query) { return request({ url: '/yp/user/list', method: 'get', params: query }) } export function createUser(query) { return request({ url: '/yp/user/create', method: 'post', params: query }) } export function updateUser(query) { return request({ url: '/yp/user/update', method: 'post', params: query }) } export function delUser(query) { return request({ url: '/yp/user/del', method: 'post', params: query }) }