public IActionResult DelUser(int uid) { int result; try { result = userGroupBll.DelUser(uid); } catch (Exception ex) { log.Error(ex.Message); throw; } return(Ok(new { msg = result > 0 ? "操作成功" : "操作失败", state = result > 0 ? true : false })); }