import { FunctionApi } from '@/apis' ; import { request } from 'umi' ; export const GetFunctionPage = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( FunctionApi . getPageFunction , { data : param , method : 'POST' } ) ; export const AddFunction = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( FunctionApi . addFunction , { data : param , method : 'POST' } ) ; export const UpdateFunction = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( FunctionApi . updateFunction , { data : param , method : 'POST' } ) ; export const DeleteFunction = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( FunctionApi . deleteFunction , { params : param , method : 'DELETE' } ) ;