From 9792cebe062ab1b66962ac2899bb78bebacff0a4 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Sun, 17 Mar 2024 11:11:23 +0800 Subject: [PATCH] 1 --- application/api/controller/Warehouse.php | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 application/api/controller/Warehouse.php diff --git a/application/api/controller/Warehouse.php b/application/api/controller/Warehouse.php new file mode 100644 index 0000000..bc69a63 --- /dev/null +++ b/application/api/controller/Warehouse.php @@ -0,0 +1,28 @@ +model = new warehouseModel(); + } + /** + * 仓库列表 + * @return + */ + public function list() { + $list = $this->model->paginate(10); + $this->success('success', $list); + } +} \ No newline at end of file