import { MenuApi } from '@/apis' ; import { request } from 'umi' ; /**
 * 获取菜单列表
 */ export const GetPage = ( ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . getData , { method : 'GET' } ) ; param param export const AddMenu = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . addMenu , { data : param , method : 'POST' } ) ; param param export const UpdateMenu = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . editMenu , { data : param , method : 'PUT' } ) ; param param export const DeleteMenu = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . deleteMenu , { params : param , method : 'DELETE' } ) ; export const GetLoadMenu = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . LoadMenu , { params : param , method : 'GET' } ) ; export const GetMenuFunctionList = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . getMenuFunction , { params : param , method : 'GET' } ) ; param param export const GetMenuTreeList = ( param ) : Promise < Types . AjaxResult > => request < Types . AjaxResult > ( MenuApi . AuthorityAssignmentTree , { params : param , method : 'GET' } ) ;