mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-20 19:07:03 +08:00
44 lines
870 B
PHP
44 lines
870 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
|
|
* @license https://opensource.org/licenses/GPL-2.0
|
|
* @link https://www.koogua.com
|
|
*/
|
|
|
|
namespace App\Http\Api\Controllers;
|
|
|
|
use App\Services\Logic\Verify\EmailCode as EmailCodeService;
|
|
use App\Services\Logic\Verify\SmsCode as SmsCodeService;
|
|
|
|
/**
|
|
* @RoutePrefix("/api/verify")
|
|
*/
|
|
class VerifyController extends Controller
|
|
{
|
|
|
|
/**
|
|
* @Post("/sms/code", name="api.verify.sms_code")
|
|
*/
|
|
public function smsCodeAction()
|
|
{
|
|
$service = new SmsCodeService();
|
|
|
|
$service->handle();
|
|
|
|
return $this->jsonSuccess();
|
|
}
|
|
|
|
/**
|
|
* @Post("/email/code", name="api.verify.email_code")
|
|
*/
|
|
public function emailCodeAction()
|
|
{
|
|
$service = new EmailCodeService();
|
|
|
|
$service->handle();
|
|
|
|
return $this->jsonSuccess();
|
|
}
|
|
|
|
}
|