ztt 11 months ago
parent bcc28e4675
commit 7520a4f11b
  1. 19
      app/store/controller/Store.php

@ -12,6 +12,7 @@ declare (strict_types=1);
namespace app\store\controller; namespace app\store\controller;
use app\common\model\store\StoreSettle;
use think\response\Json; use think\response\Json;
use app\store\model\Store as StoreModel; use app\store\model\Store as StoreModel;
@ -47,4 +48,22 @@ class Store extends Controller
} }
return $this->renderSuccess('更新成功'); 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());
}
} }

Loading…
Cancel
Save