public async Task <IActionResult> GetAllRoleInfos() { //var res = _EFCoreService.GetRoleInfo(); var res = await _roleInfoService.QueryAsync(); return(new JsonResult(new Result { Data = res, Msg = "获取角色信息成功", Status = 200 })); }