ZxcZxc123 1 year ago
parent
commit
40a3db103a
1 changed files with 8 additions and 6 deletions
  1. 8 6
      app/system/controller/GroupController.php

+ 8 - 6
app/system/controller/GroupController.php

@@ -38,12 +38,14 @@ class GroupController extends BaseController
             'list_rows' => $pagesize,
             'list_rows' => $pagesize,
         ]);
         ]);
 
 
-        $data = [
+        $data = [];
-            'list' => $list->items(),
+        foreach ($list->items() as $item) {
-            'total' => $list->total(),
+            $data[] = [
-            'page' => $list->currentPage(),
+                'id' => $item['id'],
-            'pagesize' => $list->listRows(),
+                'title' => $item['title'],
-        ];
+                'uname' => $item->user->uname,
+            ];
+        }
 
 
         return app('json')->success($data);
         return app('json')->success($data);
     }
     }