You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
777 B
39 lines
777 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Constants\ErrorCode;
|
|
use App\Request\StoreApplyEntryRequest;
|
|
use App\Service\StoreServiceInterface;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class StoreController extends BaseController
|
|
{
|
|
/**
|
|
* @Inject
|
|
* @var StoreServiceInterface
|
|
*/
|
|
protected $storeService;
|
|
|
|
/**
|
|
* 申请入驻
|
|
* 商户信息入驻+市场经理拉新记录
|
|
*/
|
|
public function applyEntry(StoreApplyEntryRequest $request)
|
|
{
|
|
|
|
$data = $request->validated();
|
|
|
|
$res = $this->storeService->entry($data);
|
|
|
|
if ($res !== true) {
|
|
return $this->result(ErrorCode::SAVE_FAILURE, $res, '申请失败,请稍后重试');
|
|
}
|
|
|
|
return $this->success('');
|
|
|
|
}
|
|
|
|
}
|