pull/1/head
limu 1 year ago
parent 764936ffe6
commit 9c43fe42bd
  1. 14
      app/api/controller/Store.php
  2. 9
      app/api/service/Store.php
  3. 8
      config/store.php

@ -12,6 +12,7 @@ declare (strict_types=1);
namespace app\api\controller; namespace app\api\controller;
use app\api\service\User as UserService;
use think\response\Json; use think\response\Json;
use app\api\service\Store as StoreService; use app\api\service\Store as StoreService;
use think\db\exception\DataNotFoundException; use think\db\exception\DataNotFoundException;
@ -37,4 +38,17 @@ class Store extends Controller
$service = new StoreService; $service = new StoreService;
return $this->renderSuccess($service->data()); return $this->renderSuccess($service->data());
} }
public function joinStore(): Json
{
// 当前用户信息
$userInfo = UserService::getCurrentLoginUser(true);
$service = new StoreService;
return $this->renderSuccess('申请成功,请耐心等待');
}
public function getStoreType(): Json
{
return $this->renderSuccess(config('store.store_type'));
}
} }

@ -58,7 +58,8 @@ class Store extends BaseService
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
*/ */
private function getModules() { private function getModules()
{
return StoreModuleModel::getModules($this->storeId); return StoreModuleModel::getModules($this->storeId);
} }
@ -108,4 +109,10 @@ class Store extends BaseService
{ {
return StoreModel::getInfo(); return StoreModel::getInfo();
} }
//申请入驻
public function joinStore()
{
}
} }

@ -0,0 +1,8 @@
<?php
return [
//申请入驻类型
'store_type' => [
'京东店铺','拼多多店铺','苏宁店铺','唯品会店铺','淘宝店铺','天猫店铺','其他平台'
],
];
Loading…
Cancel
Save