public async Task <MessageModel <string> > AddMenuPost([FromBody] SysMenu sysMenu) { var data = new MessageModel <string>(); data.success = await _menuServer.AddMenu(sysMenu); if (data.success) { data.msg = "修改成功"; } return(data); }
public async Task <MessageModel <string> > AddMenuPost([FromBody] SysMenu sysMenu) { var data = new MessageModel <string>(); data.success = await _menuServer.AddMenu(sysMenu); if (data.success) { await _menuServer.RestMenuCache();//成功之后重置缓存数据 data.msg = "菜单添加成功"; } return(data); }