import { UserApi } from '@/apis' ; import { request } from 'umi' ; export const GetPage = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( UserApi . getPageUser , { data : param , method : 'POST' } ) ; export const AddUser = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( UserApi . addUser , { data : param , method : 'POST' } ) ; export const EditUser = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( UserApi . editUser , { data : param , method : 'POST' } ) ; export const DeleteUser = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( UserApi . deleteUser , { params : param , method : 'DELETE' } ) ; export const LoadUser = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( UserApi . loadUser , { params : param , method : 'get' } ) ;