更新列表接口
This commit is contained in:
parent
e60c246513
commit
4da7ec4711
@ -59,7 +59,10 @@ class Merchant extends BaseController
|
|||||||
{
|
{
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
$where = $this->request->params(['keyword', 'date', 'status', 'statusTag', 'is_trader', 'category_id', 'type_id', 'area_id', 'street_id']);
|
$where = $this->request->params(['keyword', 'date', 'status', 'statusTag', 'is_trader', 'category_id', 'type_id', 'area_id', 'street_id']);
|
||||||
return app('json')->success($this->repository->lst($where, $page, $limit));
|
$data = $this->repository->lst($where, $page, $limit);
|
||||||
|
$data['lists'] = $data['list'];
|
||||||
|
unset($data['list']);
|
||||||
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,10 @@ class User extends BaseController
|
|||||||
'uid',
|
'uid',
|
||||||
]);
|
]);
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
return app('json')->success($this->repository->getList($where, $page, $limit));
|
$data = $this->repository->getList($where, $page, $limit);
|
||||||
|
$data['lists'] = $data['list'];
|
||||||
|
unset($data['list']);
|
||||||
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,10 @@ class UserGroup extends BaseController
|
|||||||
{
|
{
|
||||||
$page = 1;
|
$page = 1;
|
||||||
$limit = 9999;
|
$limit = 9999;
|
||||||
return app('json')->success($this->repository->getList([], $page, $limit));
|
$data = $this->repository->getList([], $page, $limit);
|
||||||
|
$data['lists'] = $data['list'];
|
||||||
|
unset($data['list']);
|
||||||
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,10 @@ class UserLabel extends BaseController
|
|||||||
$limit = 9999;
|
$limit = 9999;
|
||||||
$where = $this->request->params(['type', 'all']);
|
$where = $this->request->params(['type', 'all']);
|
||||||
$where['mer_id'] = $this->request->merId();
|
$where['mer_id'] = $this->request->merId();
|
||||||
return app('json')->success($this->repository->getList($where, $page, $limit));
|
$data = $this->repository->getList($where, $page, $limit);
|
||||||
|
$data['lists'] = $data['list'];
|
||||||
|
unset($data['list']);
|
||||||
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user