import { MenuApi } from '@/apis' ; import { request } from 'umi' ; export const MenuAsyncAPI = ( ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . getMenuAsync , { method : 'GET' } ) ; export const UserMenuTreeAsync = ( ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . getUserMenuTreeAsync , { method : 'GET' } ) ; export const MenuButtonAsyncAPI = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . GetMenuChildrenButtonAsync , { method : 'GET' , params : param } ) ; export const MenuListAsync = ( ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . GetMenuListAsync , { method : 'GET' } ) ;