diff --git a/app/api/controller/StoreKeeper.php b/app/api/controller/StoreKeeper.php index f879baa9..96c5554a 100644 --- a/app/api/controller/StoreKeeper.php +++ b/app/api/controller/StoreKeeper.php @@ -14,6 +14,7 @@ namespace app\api\controller; use app\api\service\User as UserService; use app\store\model\Express as ExpressModel; +use app\store\model\store\Address as AddressModel; use app\store\model\store\shop\Clerk as ClerkModel; use app\store\service\order\Delivery as DeliveryService; use cores\exception\BaseException; @@ -26,6 +27,7 @@ use think\db\exception\ModelNotFoundException; use app\store\model\Goods as GoodsModel; use app\store\model\Order as OrderModel; use app\store\model\OrderRefund as OrderRefundModel; +use app\store\model\dealer\Order as DealerOrderModel; /** * 店主管理 @@ -338,5 +340,30 @@ class StoreKeeper extends Controller return $this->renderError($model->getError() ?: '操作失败'); } + /** + * 全部记录 + * @return Json + * @throws \think\db\exception\DbException + */ + public function storeAddress(): Json + { + $model = new AddressModel; + $list = $model->getAll($this->request->param()); + return $this->renderSuccess(compact('list')); + } + + //分销 + + /** + * 分销订单列表 + * @return Json + */ + public function dealerList(): Json + { + $model = new DealerOrderModel(); + $list = $model->getList($this->request->param()); + return $this->renderSuccess(compact('list')); + } + } \ No newline at end of file