店主管理

pull/1/head
limu 12 months ago
parent e7dd2388a1
commit 7e4e3817fc
  1. 27
      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'));
}
}
Loading…
Cancel
Save