25 lines
618 B
TypeScript
25 lines
618 B
TypeScript
|
|
import { get, post, put, del } from '../utils/request';
|
|
|
|
/*
|
|
请求示例
|
|
*/
|
|
// export const register = (data : any) => post('/power/drv', data);
|
|
|
|
// export const updateUser = (data : any) => put('/power/drv', data);
|
|
|
|
// export const deleteUser = (data : any) => del('/power/drv', data);
|
|
|
|
export const userInfo = (data : any) => get('v1/info', data);
|
|
|
|
export const captcha = (data : any) => get('v1/captcha', data);
|
|
|
|
export const login = (data : any) => post('v1/login', data);
|
|
|
|
|
|
export const logout = (data : any) => get('v1/logout', data);
|
|
|
|
// 获取权限
|
|
export const menu = (data : any) => get('v1/menu', data);
|
|
|