fix : user site
This commit is contained in:
@@ -13,7 +13,9 @@ use App\Service\Api\User\InviteListService;
|
||||
use App\Service\Api\User\MyPageService;
|
||||
use App\Service\Api\User\SiteService;
|
||||
use App\Service\Api\User\UnBindPhoneService;
|
||||
use App\Service\Api\User\UpdateProfileService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middleware;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
@@ -137,8 +139,15 @@ class UserController extends AbstractController
|
||||
return (new MyPageService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'update_profile',methods: 'POST')]
|
||||
#[Scene(scene: 'update_profile')]
|
||||
public function updateProfile()
|
||||
{
|
||||
|
||||
return (new UpdateProfileService)->handle();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user