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.
 
 

26 lines
521 B

<?php
declare(strict_types=1);
namespace App\Controller;
use App\Request\CommunityBindRequest;
use App\Service\CommunityServiceInterface;
use Hyperf\Di\Annotation\Inject;
class CommunityController extends BaseController
{
/**
* @Inject
* @var CommunityServiceInterface
*/
protected $communityService;
public function bind(CommunityBindRequest $request)
{
$res = $this->communityService->bind($request->validated());
return $this->success(['id' => $res->id]);
}
}