/// <summary> /// 创建菜单 /// </summary> /// <param name="createMenusWrapper"></param> /// <returns></returns> public async static Task <CreateMenus> CreateAsync(CreateMenusWrapperModel createMenusWrapper) { var create = new CreateMenus(createMenusWrapper); var response = await create.RequestAsModelAsync <CreateMenus>(); return(response); }
/// <summary> /// 创建菜单 /// </summary> /// <param name="menus">菜单JSON数据</param> /// <returns></returns> public async static Task <CreateMenus> CreateAsync(string menus) { var menu = new CreateMenus(menus); return(await menu.RequestAsModelAsync <CreateMenus>()); }
/// <summary> /// 创建菜单 /// </summary> /// <param name="menus">菜单JSON数据</param> /// <returns></returns> public async static Task <CreateMenus> CreateAsync(Dictionary <string, object> menus) { var menu = new CreateMenus(menus); return(await menu.RequestAsModelAsync <CreateMenus>()); }