1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import { handle } from '../../index'
- const suffix = 'api'
- export const captcha = () => handle({
- url: `/${suffix}/captcha`,
- method: 'get',
- })
- export const login = (params: any) => handle({
- url: `/${suffix}/login`,
- method: 'post',
- params
- })
- export const getCurrentUser = () => handle({
- url: `/${suffix}/getCurrentUser`,
- method: 'get',
- })
- export const usersGetPageUser = (params: any) => handle({
- url: `/${suffix}/users/getPageUser`,
- method: 'get',
- params
- })
- export const usersGetUserById = (id: any) => handle({
- url: `/${suffix}/users/getUserById/${id}`,
- method: 'get',
- })
- export const usersRegister = (params: any) => handle({
- url: `/${suffix}/users/register`,
- method: 'post',
- params
- })
- export const usersUpdate = (params: any) => handle({
- url: `/${suffix}/users/update`,
- method: 'post',
- params
- })
- export const usersUpdatePassword = (params: any) => handle({
- url: `/${suffix}/users/updatePassword`,
- method: 'post',
- params
- })
- export const usersDeleteUser = (id: any) => handle({
- url: `/${suffix}/users/deleteUser/${id}`,
- method: 'get',
- })
- export const usersGetAuthorization = (id: any) => handle({
- url: `/${suffix}/users/getAuthorization/${id}`,
- method: 'get',
- })
- export const usersDoAuthorization = (params: any) => handle({
- url: `/${suffix}/users/doAuthorization`,
- method: 'post',
- params
- })
|