From 7520a4f11b26072ff299b873e9dd6e1b9afbb548 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Wed, 28 Feb 2024 21:38:37 +0800 Subject: [PATCH] 1 --- app/store/controller/Store.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/store/controller/Store.php b/app/store/controller/Store.php index 0480ae2d..a955fd3d 100644 --- a/app/store/controller/Store.php +++ b/app/store/controller/Store.php @@ -12,6 +12,7 @@ declare (strict_types=1); namespace app\store\controller; +use app\common\model\store\StoreSettle; use think\response\Json; use app\store\model\Store as StoreModel; @@ -47,4 +48,22 @@ class Store extends Controller } return $this->renderSuccess('更新成功'); } + + /** + * 门店入驻列表 + */ + public function getStoreSettleList(): array { + $list = StoreSettle::where('store_id', '=', $this->storeId) + ->select(); + return $this->renderSuccess($list->toArray()); + } + + /** + * 门店入驻详情 + */ + public function getStoreSettleDetail(int $id): Json + { + $detail = StoreSettle::get($id); + return $this->renderSuccess($detail->toArray()); + } }