import { MenuApi , RoleApi } from '@/apis' ; import { request } from 'umi' ; export const GetRolePage = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( RoleApi . getRolePage , { data : param , method : 'POST' } ) ; export const AddRole = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( RoleApi . addRole , { data : param , method : 'POST' } ) ; export const EditRole = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( RoleApi . editRole , { data : param , method : 'PUT' } ) ; export const DeleteRole = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( RoleApi . deleteRole , { params : param , method : 'DELETE' } ) ; param param export const GetMenuTreeList = ( ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . AuthorityAssignmentTree , { method : 'GET' } ) ;