staff/api/login.ts

31 lines
810 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);
// 修改用户信息
export const changeInfo = (data : any) => post('v2/change/info', data)
// 用户协议隐私政策
export const configGet = (data : any) => get('v2/config/get', data);