|
|
@@ -34,9 +34,21 @@ class MemberController extends Backend
|
|
|
$this->service = new MemberService();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 列表
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
public function index()
|
|
|
{
|
|
|
-
|
|
|
+ $pageSize = request()->get('limit', 15);
|
|
|
+ $list = $this->service->getDataList(request()->all(), $pageSize);
|
|
|
+ $message = array(
|
|
|
+ "msg" => '操作成功',
|
|
|
+ "code" => 0,
|
|
|
+ "data" => isset($list['list'])? $list['list']:[],
|
|
|
+ "count" => isset($list['total'])? $list['total']:0,
|
|
|
+ );
|
|
|
+ return $message;
|
|
|
}
|
|
|
|
|
|
public function edit()
|