public ActionResult <IEnumerable <SidebarMenuDTO> > Get() { var sidebarMenuDTO = new SidebarMenuDTO(); return(new SidebarMenuDTO[] { new SidebarMenuDTO() { Text = "基础架构", Group = true, Icon = "anticon anticon-table", Link = "", Children = new SidebarMenuDTO[] { new SidebarMenuDTO() { Text = "菜单管理", Icon = "anticon anticon-table", Link = "/systemSetting" } } }, new SidebarMenuDTO() { Text = "库存模块", Group = true, Link = "", Children = new SidebarMenuDTO[] { new SidebarMenuDTO() { Text = "库存明细", Icon = "anticon anticon-table", Link = "/inventory" }, new SidebarMenuDTO() { Text = "入库单", Icon = "anticon anticon-table", Link = "/inboundOrder" }, new SidebarMenuDTO() { Text = "出库单", Icon = "anticon anticon-table", Link = "/outboundOrder" } } } }); }
public ActionResult <bool> Post([FromBody] SidebarMenuDTO sidebarMenu) { // TODO: 保存 Menu 数据 return(true); }