public async Task <AjaxResult> DelRoleAsync(string ids) { var res = await _dal.DeleteByIdAsync <Role>(ids); if (res > 0) { return(Success("删除成功")); } else { return(Success("删除失败")); } }